04-06-2012, 04:00 AM
Okay at the moment i am coding a Server/Client program or rather i am updating an old program of mine to use Server/Client. But i am having abit of a problem with disconnecting from my server (this means if a client closes the program the server crashes)
So lets say ive called my socket on the client for
clientSocket
now what i have tried is
clientSocket.Disconnect ' This will simply Freeze the damn program, But it does disconnect the damn thing
clientSocket.Dispose ' Does the same as above freeze
So what i was wondering is if anyone has a code or a suggestion to do this
Allso since i am using a Client list on my server to see who is online and stuff (To administrate online users)
Once the user has disconnected i need to remove them from the list again. Suggestions for this is appreciated or a code and i'll owe you one <!-- s --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="" title="Smile" /><!-- s -->
So lets say ive called my socket on the client for
clientSocket
now what i have tried is
clientSocket.Disconnect ' This will simply Freeze the damn program, But it does disconnect the damn thing
clientSocket.Dispose ' Does the same as above freeze
So what i was wondering is if anyone has a code or a suggestion to do this
Allso since i am using a Client list on my server to see who is online and stuff (To administrate online users)
Once the user has disconnected i need to remove them from the list again. Suggestions for this is appreciated or a code and i'll owe you one <!-- s --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="" title="Smile" /><!-- s -->
Website: <!-- m --><a class="postlink" href="http://www.PBAProductions.com">http://www.PBAProductions.com</a><!-- m -->
E-Mail: <!-- e --><a href="mailtoatrick@AriSystems.Org">Patrick@AriSystems.Org</a><!-- e -->
Skype: Qwaxer
Youtube: Qwaxer
E-Mail: <!-- e --><a href="mailtoatrick@AriSystems.Org">Patrick@AriSystems.Org</a><!-- e -->
Skype: Qwaxer
Youtube: Qwaxer