mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
first
This commit is contained in:
16
PeerDoor.h
Normal file
16
PeerDoor.h
Normal 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);
|
||||
};
|
||||
Reference in New Issue
Block a user