mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-19 11:28:24 -04:00
Changes to support Relays.
* added p3BitDht::addKnownNode() so that DhtIds can be used instead of SslIds. * switched from bdStdDht() functions to use bdModDht(). * made DhtFunctions a class variable. * added function to modify NodePerBucket() parameter. * Bugfix for LinkType. peerConnectAddress.flags was not initialised. * Extra debugging of LinkType data (use LINKMGR_DEBUG_LINKTYPE). * cleaned up udprelay output. * Added Compile Rules to libretroshare.pro for building LocalNet Testing Version. (testnetwork) git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-dhtmods@4795 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
fe955c9a4f
commit
96c9071920
7 changed files with 131 additions and 20 deletions
|
@ -173,7 +173,7 @@ virtual std::string getUdpAddressString();
|
|||
|
||||
void setupConnectBits(UdpStunner *dhtStunner, UdpStunner *proxyStunner, UdpRelayReceiver *relay);
|
||||
void setupPeerSharer(pqiNetAssistPeerShare *sharer);
|
||||
|
||||
void modifyNodesPerBucket(uint16_t count);
|
||||
|
||||
void start(); /* starts up the bitdht thread */
|
||||
|
||||
|
@ -322,6 +322,7 @@ int removePeer(const std::string pid);
|
|||
|
||||
// Can be used externally too.
|
||||
int calculateNodeId(const std::string pid, bdNodeId *id);
|
||||
int addKnownNode(const bdId *id, uint32_t flags);
|
||||
|
||||
private:
|
||||
|
||||
|
@ -345,6 +346,8 @@ int removeTranslation_locked(const std::string pid);
|
|||
|
||||
pqiNetAssistPeerShare *mPeerSharer;
|
||||
|
||||
bdDhtFunctions *mDhtFns;
|
||||
|
||||
RsMutex dhtMtx;
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue