private static void AcceptCallback(IAsyncResult ar) { if (!Closed) { Socket socket = _serverSocket.EndAccept(ar); _serverSocket.BeginAccept(new AsyncCallback(AcceptCallback), null); ClientTCP client = new ClientTCP(socket, socket.RemoteEndPoint as IPEndPoint); Global.clientList.Add(client); SendDataTCP.SendClientConnetionOK(client); } }