mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
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:
parent
ade0665664
commit
98a14ba715
5 changed files with 68 additions and 19 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue