Results 1 to 4 of 4

Thread: Any way to tell if your client just bailed on you?

  1. #1

    Thread Starter
    Fanatic Member Nove's Avatar
    Join Date
    Jul 2004
    Posts
    736

    Any way to tell if your client just bailed on you?

    Winsock, vb6, tcp connection.

    Is there any way to tell serverside if your client is not connected anymore?
    Thanks.

  2. #2
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: Any way to tell if your client just bailed on you?

    The Close event will fire when the connection is terminated.


    Has someone helped you? Then you can Rate their helpful post.

  3. #3
    Junior Member
    Join Date
    Jun 2002
    Location
    Kentucky
    Posts
    21

    Re: Any way to tell if your client just bailed on you?

    Will the Close event fire only if the client disconnected properly? Or will it also fire if, say, the client crashes? I need to know whether the Close event is aware of all lost connections, or only the ones that are disconnected properly.

  4. #4
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: Any way to tell if your client just bailed on you?

    Past experience has told me it will, not matter the type of termination. Although, it may be better to do something like IRC, and send Ping requests every so often. Just to be sure.

    Phreak

    Visual Studio 6, Visual Studio.NET 2005, MASM

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