mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-10 10:05:19 -04:00
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:
parent
31454138b7
commit
6dd3d30d8e
9 changed files with 335 additions and 25 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue