detecting linkdead from both sides

Started by
0 comments, last by hplus0603 18 years, 5 months ago
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?
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.
enum Bool { True, False, FileNotFound };

This topic is closed to new replies.

Advertisement