Jump to content
  • Advertisement
Sign in to follow this  
rogerdv

detecting linkdead from both sides

This topic is 4703 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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!