ADTF
Loading...
Searching...
No Matches
rpc::jsonrpc_object_server< ServerStub, Connector > Class Template Reference

#include <json_rpc.h>

Inherits rpc::cServerConnector, ServerStub, rpc::IRPCObject, and rpc::cJSONConversions.

Inherited by adtf::remote::hollow::rpc_object_server< ServerStub, Interface > [private].

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)
 

Detailed Description

template<typename ServerStub, typename Connector = cServerConnector>
class rpc::jsonrpc_object_server< ServerStub, Connector >

Template to implement an RPC object

Template Parameters
ServerStubThe server stub to inherit from
ConnectorThe connector to inherit from

Member Function Documentation

◆ HandleCall()

template<typename ServerStub, typename Connector>
a_util::result::Result rpc::jsonrpc_object_server< ServerStub, Connector >::HandleCall ( const char * strRequest,
size_t nRequestSize,
IResponse & oResponse )
inlinevirtual

Handles an RPC call

Parameters
[in]strRequestThe request message
[in]nRequestSizeSize of the request message
[out]oResponseGets the response message set

Implements rpc::IRPCObject.


The documentation for this class was generated from the following files: