Beispiel #1
0
 /// <summary>
 /// Creates a new asynchronous tcp server socket.
 /// </summary>
 /// <param name="config">The configuration of the server socket.</param>
 public AsyncTcpServerSocket(AsyncSocketConfiguration config)
     : base(config, ProtocolType.Tcp)
 {
 }
Beispiel #2
0
        /// <summary>
        /// Creates a new asynchronous server socket.
        /// </summary>
        /// <param name="config">The configuration of the socket.</param>
        /// <param name="protocolType">The protocol type of the socket.</param>
        protected AsyncServerSocket(AsyncSocketConfiguration config, ProtocolType protocolType)
        {
            _serverSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, protocolType);

            _config = config;
        }