CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Tcp/ip

  1. #1
    Join Date
    Dec 2002
    Location
    Viet Nam
    Posts
    1

    Unhappy Tcp/ip

    I'm studying TCP/IP in game. I try to catch the sign if one of the member disconnect, but I can't. I solve this problem by sending a message "CLOSE" before disconnecting. But in the situation of network problem, how can the player knows that the other one is disconnected? Please help me as soon as possible !!!

  2. #2
    Join Date
    Nov 2002
    Posts
    13
    I'm not sure about how to implement this.. but why not try a timeout feature. Where if a packet hasn't been recieved from the peer for x amount of time the peer is dropped.

    Just a suggestion

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

Featured