Additions to tcponudp to add a TouKeepAlive system.

This is only used if we are in 'firewalled' mode.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@360 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2008-02-28 10:43:33 +00:00
parent 31454138b7
commit 6dd3d30d8e
9 changed files with 335 additions and 25 deletions

View file

@ -26,6 +26,7 @@
#include "rsserver/p3face.h"
#include "tcponudp/tou.h"
#include <sstream>
#include <sys/time.h>
@ -176,6 +177,9 @@ void RsServer::run()
{
lastSec = (int) ts;
// Every second! (UDP keepalive).
tou_tick_stunkeepalive();
// every five loops (> 5 secs)
if (loop % 5 == 0)
{