Results 1 to 21 of 21

Thread: Console chat server. How to stop stream to client.

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2009
    Posts
    25

    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!
    Attached Images Attached Images   

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width