RTI Connext .Net APIs  Version 5.2.0
 All Classes Namespaces Functions Variables Enumerations Properties Groups Pages
RTI.Connext.RequestReply.SimpleReplierListener< TReq, TRep > Interface Template Reference

The listener called by a SimpleReplier. More...

Public Member Functions

TRep OnRequestAvailable (RTI.Connext.Infrastructure.Sample< TReq > request)
 User callback that receives a request and provides a reply.
 
void ReturnLoan (TRep reply)
 Returns a previously generated reply to the user.
 

Detailed Description

The listener called by a SimpleReplier.

See Also
RTI::Connext::RequestReply::SimpleReplier<TReq,TRep>
SimpleReplier example

Member Function Documentation

TRep RTI.Connext.RequestReply.SimpleReplierListener< TReq, TRep >.OnRequestAvailable ( RTI.Connext.Infrastructure.Sample< TReq >  request)

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, ReturnLoan is called.

Parameters
requestThe received request
Returns
A reply for that request
void RTI.Connext.RequestReply.SimpleReplierListener< TReq, TRep >.ReturnLoan ( TRep  reply)

Returns a previously generated reply to the user.

This operation is always called right after sending the reply created by OnRequestAvailable. 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
replyThe reply previously provided in OnRequestAvailable

RTI Connext .Net APIs Version 5.2.0 Copyright © Sun Jun 21 2015 Real-Time Innovations, Inc