End Google Ads 201810 - BS.net 01 -->
Hello,
I have a class called Host which contains a thread waiting for "x" players to get Accept()(array of sockets)
(I am using the EaterGame classes)
I want to allow the user to choose dynacimlly how much ppl he wants to Accept() and not just as the server created.
I have a button called "connect" which hold an event to send EndAccept() to the last Accept() which was created in the array of sockets.
I was reading some books and understood that EndAccept() can be used only if I use BeginAccept and still EndAccept wont be called outsite the function.
How can I cancel an Accept() request ? I just want the thread which create the array to contiune...
Thanks!
مواقع النشر (المفضلة)