The listener called by a SimpleReplier.
More...
Public Member Functions |
virtual TRep * | on_request_available (typename dds_type_traits< TReq >::SampleRefType request)=0 |
| User callback that receives a request and provides a reply.
|
|
virtual void | return_loan (TRep *reply)=0 |
| Returns a previously generated reply to the user.
|
|
Detailed Description
template<class TReq, class TRep>
class connext::SimpleReplierListener< TReq, TRep >
The listener called by a SimpleReplier.
- See Also
- connext::SimpleReplier
-
SimpleReplier example
Member Function Documentation
template<class TReq , class TRep >
User callback that receives a request and provides a reply.
This operation gets called when a request is available and expects a reply that is automatically sent. Immediately after that, return_loan is called.
- Parameters
-
request | The received request |
- Returns
- A reply for that request
template<class TReq , class TRep >
Returns a previously generated reply to the user.
This operation is always called right after sending the reply created by on_request_available. It can be used to release any resources from the reply creation. If there are no resources to release, the implementation body can be empty.
- Parameters
-