04-06-2012, 01:47 PM
Well, in order to have them removed from the list, they need to actually be able to disconnect properly, so let's focus on that first.
If that doesn't work, you can try out the BeginDisconnect() method, that may do something. (Documentation: <!-- m --><a class="postlink" href="http://msdn.microsoft.com/en-us/library/system.net.sockets.socket.begindisconnect.aspx">http://msdn.microsoft.com/en-us/library ... nnect.aspx</a><!-- m -->)
xolara Wrote:clientSocket.Disconnect ' This will simply Freeze the damn program, But it does disconnect the damn thingYou can try putting all of the sockets in a separate thread, so it will take a while but have no effect on the actual program. This may work, but probably not.
If that doesn't work, you can try out the BeginDisconnect() method, that may do something. (Documentation: <!-- m --><a class="postlink" href="http://msdn.microsoft.com/en-us/library/system.net.sockets.socket.begindisconnect.aspx">http://msdn.microsoft.com/en-us/library ... nnect.aspx</a><!-- m -->)