示例#1
0
 protected override void run()
 {
     while (running)
     {
         try
         {
             Socket socket = Listener.AcceptSocket();
             if (socket.Connected)
             {
                 WebRequests.WaitOne();
                 new Thread(() =>
                 {
                     ControlServerRequest request = new ControlServerRequest(socket, this);
                     openSockets.Add(request);
                     request.start();
                 }).Start();
             }
         }
         catch { }
     }
 }
示例#2
0
 protected override void run()
 {
     while (running)
     {
         try
         {
             Socket socket = Listener.AcceptSocket();
             if (socket.Connected)
             {
                 WebRequests.WaitOne();
                 new Thread(() =>
                 {
                     ControlServerRequest request = new ControlServerRequest(socket, this);
                     openSockets.Add(request);
                     request.start();
                 }).Start();
             }
         }
         catch { }
     }
 }