コード例 #1
0
        /* Private methods */

        /// <summary>
        /// Private constructor that prevents initialisation
        /// of an instance of UCServer by using the default
        /// constructor.
        /// </summary>
        private UCServer(int port, int maxConn)
        {
            serverSocket = NetworkUtilities.InitSocketServer(
                NetworkUtilities.GetIPv4Address(),
                port);

            clients = new Socket[maxConn];
        }