rad 6.2.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
rad::MsgRequestorRaw Class Reference

#include <msgRequestorRaw.hpp>

Public Member Functions

 MsgRequestorRaw (const std::string &endpoint, const std::string &identity, boost::asio::io_context &ios, std::function< void(const std::error_code &err_code, const std::string &msg_type_id, const void *data, const size_t data_size)> reply_handler)
 
virtual ~MsgRequestorRaw ()
 
size_t Send (const std::string &payload_type, const std::string &payload, const long timeout=0)
 
 MsgRequestorRaw (const MsgRequestorRaw &)=delete
 
MsgRequestorRawoperator= (const MsgRequestorRaw &)=delete
 

Detailed Description

Class to send requests and receive replies.

Constructor & Destructor Documentation

◆ MsgRequestorRaw() [1/2]

rad::MsgRequestorRaw::MsgRequestorRaw ( const std::string & endpoint,
const std::string & identity,
boost::asio::io_context & ios,
std::function< void(const std::error_code &err_code, const std::string &msg_type_id, const void *data, const size_t data_size)> reply_handler )

Constructor for the MsgRequestorRaw class.

Parameters
[in]endpointAddress of the request destination process.
[in]identityIdentity of the originator of the request.
[in]iosReference to the event loop.
[in]reply_handlerHandler for the replies.

◆ ~MsgRequestorRaw()

rad::MsgRequestorRaw::~MsgRequestorRaw ( )
virtual

Destructor for the MsgRequestorRaw class.

◆ MsgRequestorRaw() [2/2]

rad::MsgRequestorRaw::MsgRequestorRaw ( const MsgRequestorRaw & )
delete

Member Function Documentation

◆ operator=()

MsgRequestorRaw & rad::MsgRequestorRaw::operator= ( const MsgRequestorRaw & )
delete

◆ Send()

size_t rad::MsgRequestorRaw::Send ( const std::string & payload_type,
const std::string & payload,
const long timeout = 0 )

Send a request message to an destination process.

Parameters
payload_typeType of the request's payload.
payloadRequest's payload.
timeoutin msec for receiving the reply.
Returns
The number of bytes sent.

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