Correctly track direction and privilege of peer connections, pass to load tracking.

This commit is contained in:
JoelKatz
2013-01-14 23:30:13 -08:00
parent 8f6c597373
commit 33b2a20024
4 changed files with 20 additions and 7 deletions

View File

@@ -43,7 +43,7 @@ PeerDoor::PeerDoor(boost::asio::io_service& io_service) :
void PeerDoor::startListening()
{
Peer::pointer new_connection = Peer::create(mAcceptor.get_io_service(), mCtx,
theApp->getConnectionPool().assignPeerId());
theApp->getConnectionPool().assignPeerId(), true);
mAcceptor.async_accept(new_connection->getSocket(),
boost::bind(&PeerDoor::handleConnect, this, new_connection,