Dev Essential
Loading...
Searching...
No Matches
rpc::cServerConnector Class Reference

#include <json_rpc.h>

Inherits jsonrpc::AbstractServerConnector.

Inherited by rpc::jsonrpc_object_server< ServerStub, Connector > [protected].

Public Member Functions

bool StartListening ()
 
bool StopListening ()
 
bool SendResponse (const std::string &response, void *addInfo)
 
bool OnRequest (const std::string &request, IResponse *response)
 

Detailed Description

Connector that sends responses via IResponse

Member Function Documentation

◆ OnRequest()

bool rpc::cServerConnector::OnRequest ( const std::string & request,
IResponse * response )

Called on request

Parameters
[in]requestThe request string
[out]responseThe response which gets set
Return values
true

◆ SendResponse()

bool rpc::cServerConnector::SendResponse ( const std::string & response,
void * addInfo )

Sets the response to addInfo which must be of type IResponse

Parameters
[in]responseThe response message
[out]addInfoPointer to object of type IResponse the response gets set to
Return values
true

◆ StartListening()

bool rpc::cServerConnector::StartListening ( )

Currently not implemented, returns always true

Return values
true

◆ StopListening()

bool rpc::cServerConnector::StopListening ( )

Currently not implemented, returns always true

Return values
true

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