Пример #1
0
 public void Run()
 {
     while (true)
     {
         Socket socket = Listener.AcceptSocket();
         lock (this)
         {
             ServerClient client = new ServerClient(socket, this);
             client.OnConnect();
             client.Run();
             Clients.Add(client);
         }
     }
 }