|
rad
2.0.0
|
#include <msgRequestorRaw.hpp>
Public Member Functions | |
| MsgRequestorRaw (const std::string &endpoint, const std::string &identity, boost::asio::io_service &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 | |
| MsgRequestorRaw & | operator= (const MsgRequestorRaw &)=delete |
| MsgRequestorRaw (const std::string &endpoint, const std::string &identity, boost::asio::io_service &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 | |
| MsgRequestorRaw & | operator= (const MsgRequestorRaw &)=delete |
Class to send requests and receive replies.
| rad::MsgRequestorRaw::MsgRequestorRaw | ( | const std::string & | endpoint, |
| const std::string & | identity, | ||
| boost::asio::io_service & | 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.
| [in] | endpoint | Address of the request destination process. |
| [in] | identity | Identity of the originator of the request. |
| [in] | ios | Reference to the event loop. |
| [in] | reply_handler | Handler for the replies. |
|
virtual |
Destructor for the MsgRequestorRaw class.
|
delete |
| rad::MsgRequestorRaw::MsgRequestorRaw | ( | const std::string & | endpoint, |
| const std::string & | identity, | ||
| boost::asio::io_service & | 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 |
|
delete |
|
delete |
|
delete |
| size_t rad::MsgRequestorRaw::Send | ( | const std::string & | payload_type, |
| const std::string & | payload, | ||
| const long | timeout = 0 |
||
| ) |
| 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.
| payload_type | Type of the request's payload. |
| payload | Request's payload. |
| timeout | in msec for receiving the reply. |
1.8.5