Tweaks to get the UPnP working. Corrected network address passing,

and also adjusted DHT timeout periods.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@345 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2008-02-11 16:27:55 +00:00
parent ade0665664
commit 98a14ba715
5 changed files with 68 additions and 19 deletions

View file

@ -24,6 +24,7 @@
*/
#include "udpsorter.h"
#include "util/rsnet.h"
#include <iostream>
#include <sstream>
@ -38,8 +39,10 @@ static const int STUN_TTL = 64;
#define DEBUG_UDP_SORTER 1
UdpSorter::UdpSorter(struct sockaddr_in &local)
: udpLayer(NULL), laddr(local)
:udpLayer(NULL), laddr(local), eaddrKnown(false)
{
sockaddr_clear(&eaddr);
openSocket();
return;
}