Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sockets Programming(Disconnecting from Server)
#2
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.

xolara Wrote:clientSocket.Disconnect ' This will simply Freeze the damn program, But it does disconnect the damn thing
You 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 -->)
My Blog | My Setup | My Videos | Have a wonderful day.


Messages In This Thread
Re: Sockets Programming(Disconnecting from Server) - by brandonio21_phpbb3_import2 - 04-06-2012, 01:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  multiple csv files add sql server tables via VB.NET secilsengul 1 9,979 04-16-2014, 10:27 AM
Last Post: brco900033
  Downloading from FTP server doesn't work brco900033 5 21,859 08-16-2013, 04:32 AM
Last Post: brco900033
  Very New to Programming Need advice . pwsincd 8 28,625 05-05-2013, 11:15 PM
Last Post: pwsincd
  How can I get the server status??? mnxford 5 23,731 03-27-2013, 10:53 AM
Last Post: mnxford
  Is this possible with SQL Server? Worf 2 12,338 02-25-2013, 03:04 AM
Last Post: Worf

Forum Jump:


Users browsing this thread: 1 Guest(s)