Refactor Peer

This commit is contained in:
Vinnie Falco
2013-06-05 08:38:27 -07:00
parent 38edcc8f0d
commit d8c97c2149
10 changed files with 460 additions and 287 deletions

View File

@@ -38,8 +38,11 @@ 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(), true);
Peer::pointer new_connection = Peer::New (
mAcceptor.get_io_service(),
mCtx,
theApp->getConnectionPool().assignPeerId(),
true);
mAcceptor.async_accept(new_connection->getSocket(),
boost::bind(&PeerDoor::handleConnect, this, new_connection,