Add awareness of online status, and put old OS-dep utils in OSUtils.

This commit is contained in:
Adam Ierymenko 2015-04-08 17:10:21 -07:00
parent 0751eaabd8
commit e34bc961db
5 changed files with 466 additions and 7 deletions

View file

@ -280,7 +280,7 @@
/**
* Timeout for overall peer activity (measured from last receive)
*/
#define ZT_PEER_ACTIVITY_TIMEOUT ((ZT_PEER_DIRECT_PING_DELAY * 2) + ZT_PING_CHECK_INVERVAL)
#define ZT_PEER_ACTIVITY_TIMEOUT (ZT_PEER_DIRECT_PING_DELAY + (ZT_PING_CHECK_INVERVAL * 3))
/**
* Stop relaying via peers that have not responded to direct sends