mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-06 08:05:18 -04:00
Added SystemExternalAccess Function to RPC.
This provides ExternalPort + DHTKey to Client. To be used to find and connect - even if Dynamic IP address changes :) git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6004 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
97e9458f36
commit
766d156315
9 changed files with 959 additions and 10 deletions
|
@ -161,6 +161,13 @@ p3BitDht::~p3BitDht()
|
|||
}
|
||||
|
||||
|
||||
bool p3BitDht::getOwnDhtId(std::string &ownDhtId)
|
||||
{
|
||||
bdStdPrintNodeId(ownDhtId, &(mOwnDhtId), false);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
void p3BitDht::setupConnectBits(UdpStunner *dhtStunner, UdpStunner *proxyStunner, UdpRelayReceiver *relay)
|
||||
{
|
||||
mDhtStunner = dhtStunner;
|
||||
|
|
|
@ -168,6 +168,8 @@ virtual std::string getUdpAddressString();
|
|||
virtual void getDhtRates(float &read, float &write);
|
||||
virtual void getRelayRates(float &read, float &write, float &relay);
|
||||
|
||||
virtual bool getOwnDhtId(std::string &ownDhtId);
|
||||
|
||||
/***********************************************************************************************
|
||||
********** External RsDHT Interface (defined in libretroshare/src/retroshare/rsdht.h) *********
|
||||
************************************************************************************************/
|
||||
|
|
|
@ -190,6 +190,9 @@ virtual int setRelayMode(uint32_t mode) = 0;
|
|||
virtual int getRelayAllowance(int classIdx, uint32_t &count, uint32_t &bandwidth) = 0;
|
||||
virtual int setRelayAllowance(int classIdx, uint32_t count, uint32_t bandwidth) = 0;
|
||||
|
||||
// So we can provide to clients.
|
||||
virtual bool getOwnDhtId(std::string &ownDhtId) = 0;
|
||||
|
||||
|
||||
#if 0
|
||||
virtual std::string getPeerStatusString();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue