added keep-alive packets to distant chat. Improved the tunnel management logic.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7735 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2014-12-07 21:51:30 +00:00
parent ea53e41c9c
commit b7e94fce99
4 changed files with 157 additions and 75 deletions

View file

@ -68,7 +68,8 @@ private:
public:
DistantChatPeerInfo() {}
time_t last_contact ; // used to send keep alive packets
time_t last_contact ; // used to keep track of working connexion
time_t last_keep_alive_sent ; // last time we sent a keep alive packet.
unsigned char aes_key[DISTANT_CHAT_AES_KEY_SIZE] ;