RTI Connext Traditional C++ API  Version 6.0.1
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
connext::SimpleReplier< TReq, TRep > Class Template Reference

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 > &params)
 Creates a new SimpleReplier.
 
virtual ~SimpleReplier ()
 Releases the resources created by this SimpleReplier.
 

Detailed Description

template<typename TReq, typename TRep>
class connext::SimpleReplier< TReq, TRep >

A callback-based replier.

A SimpleReplier is based on a connext::SimpleReplierListener that users provide. Requests are passed to the callback, which returns a reply. The reply is directed only to the Requester that sent the request.

SimpleRepliers are useful for simple use cases where a single reply for a request can be generated quickly, for example, looking up a table.

When more than one reply for a request can be generated or the processing is complex or needs to happen asynchronously, use a connext::Replier instead.

See Also
connext::Replier
connext::SimpleReplierListener
SimpleReplier example

Constructor & Destructor Documentation

template<typename TReq , typename TRep >
connext::SimpleReplier< TReq, TRep >::SimpleReplier ( DDSDomainParticipant participant,
const std::string &  service_name,
SimpleReplierListener< TReq, TRep > &  listener 
)
template<typename TReq , typename TRep >
connext::SimpleReplier< TReq, TRep >::SimpleReplier ( const SimpleReplierParams< TReq, TRep > &  params)
explicit
template<typename TReq , typename TRep >
connext::SimpleReplier< TReq, TRep >::~SimpleReplier ( )
virtual

Releases the resources created by this SimpleReplier.

See Also
connext::Replier::~Replier()

RTI Connext Traditional C++ API Version 6.0.1 Copyright © Sat Nov 23 2019 Real-Time Innovations, Inc