|
-
Apr 2nd, 2009, 01:08 PM
#1
Thread Starter
Junior Member
Console chat server. How to stop stream to client.
Hello all. I am building a chat client/server.
Everything on the client end now works fine, but I am having problems with my console based server. Users can connect and chat just fine, but when a user disconnects, the server does not know how recognize this, often spamming the last message that was sent by the user, follow by the server app crashing.
I need to find a way to stop streaming info to the user (and what ever else I need to stop to keep the server from crashing) and broadcast a message that says which user is disconnecting.
This is my first chat/client program so I'm kinda lost as what I should do... Any help!? Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|