Base class for a Requester in the RPC communication.
More...
#include <Requester.hpp>
Base class for a Requester in the RPC communication.
◆ ~Requester()
◆ get_requester_reader()
| virtual DataReader * get_requester_reader |
( |
| ) |
const |
|
pure virtual |
◆ get_requester_writer()
| virtual DataWriter * get_requester_writer |
( |
| ) |
const |
|
pure virtual |
◆ get_service_name()
| virtual const std::string & get_service_name |
( |
| ) |
const |
|
pure virtual |
Returns the name of the service to which the requester belongs.
◆ return_loan()
This operation indicates to the Requester's DataReader that the application is done accessing the collection of Reply datas and infos obtained by some earlier invocation of take_reply.
- Parameters
-
| [in,out] | data | A LoanableCollection object where the received data samples were obtained from an earlier invocation of take_reply on this Requester. |
| [in,out] | info | A LoanableSequence where the received request infos were obtained from an earlier invocation of take_reply on this Requester. |
◆ send_request()
Send a request message.
- Parameters
-
| data | Data to send |
| info | Information about the request sample. This information is used to match the request with the reply through the SampleIdentity |
- Returns
- RETCODE_OK if the reply was sent successfully
-
RETCODE_PRECONDITION_NOT_MET if the requester is not enabled or it is not fully matched
-
a ReturnCode from the underlying DataWriter
◆ take_reply() [1/2]
Take all reply messages stored in the Requester DataReader's history.
- Note
- This method does not allow to take only the samples associated to a given request. User must implement a zero-copy solution to link request and reply samples.
- Parameters
-
| data | Data to receive the replies |
| info | Information about the reply samples |
- Returns
- RETCODE_OK if the replies were taken successfully or a ReturnCode related to the specific error otherwise
◆ take_reply() [2/2]
Take a reply message from the Requester DataReader's history.
- Parameters
-
| data | Data to receive the reply |
| info | Information about the reply sample |
- Returns
- RETCODE_OK if the reply was taken successfully or a ReturnCode related to the specific error otherwise
The documentation for this class was generated from the following file: