ADTF
Loading...
Searching...
No Matches
rpc::http::cJSONClientConnector Class Reference

#include <json_http_rpc.h>

Inherits jsonrpc::IClientConnector.

Public Member Functions

 cJSONClientConnector (const std::string &strUrl)
 
 ~cJSONClientConnector ()
 DTOR.
 
 cJSONClientConnector (const cJSONClientConnector &)=delete
 Disable copy construction.
 
cJSONClientConnectoroperator= (const cJSONClientConnector &)=delete
 Disable copy assignment.
 
 cJSONClientConnector (cJSONClientConnector &&other)
 
cJSONClientConnectoroperator= (cJSONClientConnector &&other)
 
void SendRPCMessage (const std::string &message, std::string &result) override
 

Detailed Description

Connector that sends RPC messages via HTTP

Constructor & Destructor Documentation

◆ cJSONClientConnector() [1/2]

rpc::http::cJSONClientConnector::cJSONClientConnector ( const std::string & strUrl)

Constructor

Parameters
[in]strUrlThe HTTP url, i.e. http://localhost:8000/system

◆ cJSONClientConnector() [2/2]

rpc::http::cJSONClientConnector::cJSONClientConnector ( cJSONClientConnector && other)

Move constructor

Parameters
[in,out]otherMove from object *this is created from. Left in empty state.

Member Function Documentation

◆ operator=()

cJSONClientConnector & rpc::http::cJSONClientConnector::operator= ( cJSONClientConnector && other)

Move assignment

Parameters
[in,out]otherMove from object *this is created from. Left in empty state.
Returns
*this

◆ SendRPCMessage()

void rpc::http::cJSONClientConnector::SendRPCMessage ( const std::string & message,
std::string & result )
override

Send an RPC message to the connected url

Parameters
[in]messageMessage to send
[out]resultThe result of the response
Exceptions
jsonrpc::JsonRpcExceptionin case of a connection error

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