This commit is contained in:
jed
2011-10-14 11:39:06 -07:00
commit a8e8613475
112 changed files with 25368 additions and 0 deletions

16
PeerDoor.h Normal file
View File

@@ -0,0 +1,16 @@
#include "Peer.h"
#include <boost/asio.hpp>
/*
Handles incoming connections from other Peers
*/
class PeerDoor
{
boost::asio::ip::tcp::acceptor mAcceptor;
void startListening();
void handleConnect(Peer::pointer new_connection,
const boost::system::error_code& error);
public:
PeerDoor(boost::asio::io_service& io_service);
};