* 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:
drbob 2008-08-16 15:02:24 +00:00
parent 483118daec
commit 33032e8a83
20 changed files with 882 additions and 141 deletions

View file

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

View file

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

View file

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

View file

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

View file

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