Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void ClientAcceptThread()
- {
- while (ApplicationCloseEvent.WaitOne(0) == false)
- {
- List<Socket> listenList = new List<Socket>() { mServer };
- Socket.Select(listenList, null, null, 100);
- if (listenList.Count == 0)
- continue;
- Socket client = mServer.Accept();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment