Cromon

ListenServer.cs

Oct 27th, 2012
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.41 KB | None | 0 0
  1.         private void ClientAcceptThread()
  2.         {
  3.             while (ApplicationCloseEvent.WaitOne(0) == false)
  4.             {
  5.                 List<Socket> listenList = new List<Socket>() { mServer };
  6.                 Socket.Select(listenList, null, null, 100);
  7.                 if (listenList.Count == 0)
  8.                     continue;
  9.  
  10.                 Socket client = mServer.Accept();
  11.             }
  12.         }
Advertisement
Add Comment
Please, Sign In to add comment