예제 #1
0
파일: Webserver.cs 프로젝트: spboom/SEHACTH
 protected override void run()
 {
     while (running)
     {
         try
         {
             Socket socket = Listener.AcceptSocket();
             if (socket.Connected)
             {
                 WebRequests.WaitOne();
                 new Thread(() =>
                 {
                     WebServerRequest request = new WebServerRequest(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(() =>
                 {
                     WebServerRequest request = new WebServerRequest(socket, this);
                     openSockets.Add(request);
                     request.start();
                 }).Start();
             }
         }
         catch { }
     }
 }