mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-07 00:25:16 -04:00
* Modified p3ConnectMgr to enable Standalone testing of components.
* Created pqiNetAssist interfaces for DHT and UPnP. * Created PQIHub etc for standalone testing (in ft/pqitestor.h for now). * Add basics of first server test ... its not quite complete yet. * Improvements to ftserver. * Changes to many tests to match other mods. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@689 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
483118daec
commit
33032e8a83
20 changed files with 882 additions and 141 deletions
|
@ -391,7 +391,7 @@ int main(int argc, char **argv)
|
|||
|
||||
|
||||
std::cerr << "Switching on DhtTester()" << std::endl;
|
||||
dhtTester.setDhtOn(true);
|
||||
dhtTester.enable(true);
|
||||
|
||||
/* wait loop */
|
||||
while(1)
|
||||
|
|
|
@ -391,7 +391,7 @@ int main(int argc, char **argv)
|
|||
|
||||
|
||||
std::cerr << "Switching on DhtTester()" << std::endl;
|
||||
dhtTester.setDhtOn(true);
|
||||
dhtTester.enable(true);
|
||||
|
||||
std::cerr << "Adding a List of Peers" << std::endl;
|
||||
std::list<std::string>::iterator it;
|
||||
|
@ -402,7 +402,7 @@ int main(int argc, char **argv)
|
|||
}
|
||||
|
||||
/* switch off Stun/Bootstrap stuff */
|
||||
dhtTester.doneStun();
|
||||
dhtTester.enableStun(false);
|
||||
dhtTester.setBootstrapAllowed(false);
|
||||
|
||||
|
||||
|
|
|
@ -98,7 +98,7 @@ int main(int argc, char **argv)
|
|||
|
||||
|
||||
std::cerr << "Switching on DhtTester()" << std::endl;
|
||||
dhtTester.setDhtOn(true);
|
||||
dhtTester.enable(true);
|
||||
|
||||
std::cerr << "Adding a List of Peers" << std::endl;
|
||||
std::list<std::string>::iterator it;
|
||||
|
|
|
@ -107,7 +107,7 @@ OpenDHTMgr::OpenDHTMgr(std::string ownId, pqiConnectCb* cb, std::string configdi
|
|||
|
||||
|
||||
/********** OVERLOADED FROM p3DhtMgr ***************/
|
||||
bool OpenDHTMgr::init()
|
||||
bool OpenDHTMgr::dhtInit()
|
||||
{
|
||||
std::string configpath = mConfigDir;
|
||||
|
||||
|
@ -134,7 +134,7 @@ bool OpenDHTMgr::init()
|
|||
return true;
|
||||
}
|
||||
|
||||
bool OpenDHTMgr::shutdown()
|
||||
bool OpenDHTMgr::dhtShutdown()
|
||||
{
|
||||
/* do nothing */
|
||||
if (mClient)
|
||||
|
|
|
@ -42,8 +42,8 @@ class OpenDHTMgr: public p3DhtMgr
|
|||
protected:
|
||||
|
||||
/********** OVERLOADED FROM p3DhtMgr ***************/
|
||||
virtual bool init();
|
||||
virtual bool shutdown();
|
||||
virtual bool dhtInit();
|
||||
virtual bool dhtShutdown();
|
||||
virtual bool dhtActive();
|
||||
virtual int status(std::ostream &out);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue