mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-19 22:40:36 -04:00
* 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:
parent
f6002b3981
commit
b56ddfeb5b
10 changed files with 445 additions and 11 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -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?
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue