15#ifndef PKG_RPC_JSON_RPC_H_INCLUDED
16#define PKG_RPC_JSON_RPC_H_INCLUDED
20#include <jsonrpccpp/client/iclientconnector.h>
21#include <jsonrpccpp/server/abstractserverconnector.h>
36#ifndef PKGRPC_NO_TOSTRING
61 static uint64_t
stoull(
const std::string& strValue);
67 static int64_t
stoll(
const std::string& strValue);
76template <
typename Stub,
typename Connector,
typename ConnectorInitializer>
101template <
typename Stub,
typename Interface,
typename Connector,
typename ConnectorInitializer>
158template <
typename ServerStub,
typename Connector = cServerConnector>
160 protected ServerStub,
Definition result_type_decl.h:34
Definition rpc_server.h:47
Definition rpc_server.h:34
static std::string to_string(uint64_t nValue)
static a_util::result::Result json_to_result(const Json::Value &oValue)
static std::string to_string(int64_t nValue)
static Json::Value result_to_json(a_util::result::Result nResult)
static uint64_t stoull(const std::string &strValue)
static int64_t stoll(const std::string &strValue)
Definition json_rpc.h:125
bool SendResponse(const std::string &response, void *addInfo)
bool OnRequest(const std::string &request, IResponse *response)
virtual a_util::result::Result HandleCall(const char *strRequest, size_t nRequestSize, IResponse &oResponse)
Definition json_rpc_impl.h:56
jsonrpc_object_server()
CTOR.
Definition json_rpc_impl.h:50
Stub & GetStub() const
Definition json_rpc_impl.h:43
jsonrpc_remote_interface(const ConnectorInitializer &oInitializer)
Definition json_rpc_impl.h:37
jsonrpc_remote_object(const ConnectorInitializer &oInitializer)
Definition json_rpc_impl.h:23
Stub & GetStub() const
Definition json_rpc_impl.h:30
definition of the rpc namespace
Definition json_rpc_impl.h:20