Refactor ConnectionPool into IPeers and hide the implementation

Conflicts:
	src/cpp/ripple/Application.h
This commit is contained in:
Vinnie Falco
2013-06-05 10:58:23 -07:00
parent d8c97c2149
commit eb57573f9a
18 changed files with 363 additions and 310 deletions

View File

@@ -625,7 +625,7 @@ Json::Value RPCHandler::doConnect(Json::Value jvRequest, int& cost, ScopedLock&
int iPort = jvRequest.isMember("port") ? jvRequest["port"].asInt() : -1;
// XXX Validate legal IP and port
theApp->getConnectionPool().connectTo(strIp, iPort);
theApp->getPeers().connectTo(strIp, iPort);
return "connecting";
}
@@ -772,7 +772,7 @@ Json::Value RPCHandler::doPeers(Json::Value, int& cost, ScopedLock& MasterLockHo
{
Json::Value jvResult(Json::objectValue);
jvResult["peers"] = theApp->getConnectionPool().getPeersJson();
jvResult["peers"] = theApp->getPeers().getPeersJson();
return jvResult;
}