Files
rippled/RPCDoor.h
JoelKatz 8c5918b576 More wallet work and RPC work. The first real newcoin RPC "createfamily"
(to create a family of accounts) works.
2011-12-29 02:02:30 -08:00

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);
};