mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 02:55:50 +00:00
Finish modifying this code to use the JsonCpp library.
This commit is contained in:
11
RPCServer.h
11
RPCServer.h
@@ -1,10 +1,13 @@
|
||||
#include "HttpRequest.h"
|
||||
#include "RequestParser.h"
|
||||
#include <boost/array.hpp>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <boost/enable_shared_from_this.hpp>
|
||||
#include <boost/asio.hpp>
|
||||
|
||||
#include "json/value.h"
|
||||
|
||||
#include "HttpRequest.h"
|
||||
#include "RequestParser.h"
|
||||
|
||||
class RPCServer : public boost::enable_shared_from_this<RPCServer>
|
||||
{
|
||||
boost::asio::ip::tcp::socket mSocket;
|
||||
@@ -21,10 +24,10 @@ class RPCServer : public boost::enable_shared_from_this<RPCServer>
|
||||
void handle_read(const boost::system::error_code& e, std::size_t bytes_transferred);
|
||||
|
||||
|
||||
std::string handleRequest(std::string& requestStr);
|
||||
std::string handleRequest(const std::string& requestStr);
|
||||
void sendReply();
|
||||
|
||||
// json_spirit::Value doCommand(std::string& command,json_spirit::Array& params);
|
||||
Json::Value doCommand(const std::string& command, Json::Value& params);
|
||||
|
||||
public:
|
||||
typedef boost::shared_ptr<RPCServer> pointer;
|
||||
|
||||
Reference in New Issue
Block a user