private static void OnClientConnect(IAsyncResult result) { TcpClient client = serverSocket.EndAcceptTcpClient(result); serverSocket.BeginAcceptTcpClient(new AsyncCallback(OnClientConnect), null); ClientManager.CreateNewConnection(client); }