internal void RemoveConnection(TCPServerConnection connection) { if (connection != null) { fConnections.Remove(connection); } }
private void OnConnectRequest(IAsyncResult result) { Socket sock = (Socket)result.AsyncState; TCPServerConnection newConn = new TCPServerConnection(this, sock.EndAccept(result)); sock.BeginAccept(OnConnectRequest, sock); }
internal void AddConnection(TCPServerConnection connection) { if (connection != null) { fConnections.Add(connection); } }