RTI Connext C++ API
Version 5.1.0
|
A callback-based replier. More...
Public Member Functions | |
SimpleReplier (DDSDomainParticipant *participant, const std::string &service_name, SimpleReplierListener< TReq, TRep > &listener) | |
Creates a new SimpleReplier. | |
SimpleReplier (const SimpleReplierParams< TReq, TRep > ¶ms) | |
Creates a new SimpleReplier. | |
virtual | ~SimpleReplier () |
Releases the resources created by this SimpleReplier. | |
A callback-based replier.
A SimpleReplier is based on a connext::SimpleReplierListener that users provide. Requests are passed to the user callback, which returns a reply.
SimpleRepliers are useful for simple use cases where a single reply for a request can be generated quickly (e.g., looking up a data base).
When more than one reply for a request can be generated or the processing needs to happen asynchronously, use a connext::Replier instead.
connext::SimpleReplier< TReq, TRep >::SimpleReplier | ( | DDSDomainParticipant * | participant, |
const std::string & | service_name, | ||
SimpleReplierListener< TReq, TRep > & | listener | ||
) |
Creates a new SimpleReplier.
|
explicit |
Creates a new SimpleReplier.
|
virtual |
Releases the resources created by this SimpleReplier.