mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-19 18:45:52 +00:00
18 lines
403 B
C++
18 lines
403 B
C++
#include "RPCServer.h"
|
|
#include <boost/asio.hpp>
|
|
|
|
/*
|
|
Handles incoming connections from people making RPC Requests
|
|
*/
|
|
|
|
class RPCDoor
|
|
{
|
|
boost::asio::ip::tcp::acceptor mAcceptor;
|
|
void startListening();
|
|
void handleConnect(RPCServer::pointer new_connection,
|
|
const boost::system::error_code& error);
|
|
|
|
bool isClientAllowed(const std::string& ip);
|
|
public:
|
|
RPCDoor(boost::asio::io_service& io_service);
|
|
}; |