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:
drbob 2012-12-17 19:15:04 +00:00
parent 97e9458f36
commit 766d156315
9 changed files with 959 additions and 10 deletions

View file

@ -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;

View file

@ -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) *********
************************************************************************************************/

View file

@ -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();