TCP socket.

This commit is contained in:
Adam Ierymenko 2014-03-18 11:53:53 -07:00
parent bf5d8de999
commit bb25128406
6 changed files with 228 additions and 22 deletions

View file

@ -304,6 +304,11 @@ error_no_byte_order_defined;
*/
#define ZT_PEER_LINK_ACTIVITY_TIMEOUT ((ZT_PEER_DIRECT_PING_DELAY * 2) + 1000)
/**
* Close TCP tunnels if unused for this long
*/
#define ZT_TCP_TUNNEL_ACTIVITY_TIMEOUT ZT_PEER_LINK_ACTIVITY_TIMEOUT
/**
* Stop relaying via peers that have not responded to direct sends in this long
*/