Exemplo n.º 1
0
 internal void RemoveConnection(TCPServerConnection connection)
 {
     if (connection != null)
     {
         fConnections.Remove(connection);
     }
 }
Exemplo n.º 2
0
        private void OnConnectRequest(IAsyncResult result)
        {
            Socket sock = (Socket)result.AsyncState;
            TCPServerConnection newConn = new TCPServerConnection(this, sock.EndAccept(result));

            sock.BeginAccept(OnConnectRequest, sock);
        }
Exemplo n.º 3
0
 internal void AddConnection(TCPServerConnection connection)
 {
     if (connection != null)
     {
         fConnections.Add(connection);
     }
 }