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

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