|
Dev Essential
1.6.3
|
#include <json_rpc.h>
Inherits rpc::cServerConnector, ServerStub, rpc::IRPCObject, and rpc::cJSONConversions.
Public Member Functions | |
| jsonrpc_object_server () | |
| CTOR. | |
| virtual a_util::result::Result | HandleCall (const char *strRequest, size_t nRequestSize, IResponse &oResponse) |
Additional Inherited Members | |
Protected Member Functions inherited from rpc::cServerConnector | |
| bool | StartListening () |
| bool | StopListening () |
| bool | SendResponse (const std::string &response, void *addInfo) |
| bool | OnRequest (const std::string &request, IResponse *response) |
Static Protected Member Functions inherited from rpc::cJSONConversions | |
| static Json::Value | result_to_json (a_util::result::Result nResult) |
| static std::string | to_string (uint64_t nValue) |
| static std::string | to_string (int64_t nValue) |
| static a_util::result::Result | json_to_result (const Json::Value &oValue) |
| static uint64_t | stoull (const std::string &strValue) |
| static int64_t | stoll (const std::string &strValue) |
Template to implement an RPC object
| ServerStub | The server stub to inherit from |
| Connector | The connector to inherit from |
|
inlinevirtual |
Handles an RPC call
| [in] | strRequest | The request message |
| [in] | nRequestSize | Size of the request message |
| [out] | oResponse | Gets the response message set |
Implements rpc::IRPCObject.