Jump to content
  • Advertisement
Sign in to follow this  
rogerdv

detecting linkdead from both sides

This topic is 4791 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

After advancing a bit in my protocol design I have found that I still dont have defined a way to deal with dead links (server was shutdown, client lost connection, etc). I was thinking to keep the time of last packet received and check every certain time if that mark is above the normal timeout. Is that approach correct or effective?

Share this post


Link to post
Share on other sites
Advertisement
Yes, a time-out is the way most people do it. Make sure that your protocol includes regular keep-alives so that you won't time out someone that's just standing still/inactive.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!