* Switched on Dht "Attach" Mode if RS is firewalled. (and not nice firewall).

* Added interfaces to enable AttachMode switch.
 * Added further tcponudp tests.




git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4484 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2011-07-21 11:28:19 +00:00
parent f6002b3981
commit b56ddfeb5b
10 changed files with 445 additions and 11 deletions

View file

@ -319,3 +319,17 @@ bool p3BitDht::getExternalInterface(struct sockaddr_in &raddr,
}
bool p3BitDht::setAttachMode(bool on)
{
#ifdef DEBUG_BITDHT
std::cerr << "p3BitDht::setAttachMode(" << on << ")";
std::cerr << std::endl;
#endif
return mUdpBitDht->setAttachMode(on);
}

View file

@ -192,6 +192,11 @@ virtual bool getPeerStatus(std::string id,
virtual bool getExternalInterface(struct sockaddr_in &raddr,
uint32_t &mode);
virtual bool setAttachMode(bool on);
/* notifyPeer/setExtInterface/Bootstrap/Stun
* hould all be removed from NetAssist?
*/