RTI Connext Modern C++ API
Version 6.1.1
|
Manages the DDS entities required to receive function calls and send the return values. More...
#include <ServiceEndpoint.hpp>
Public Types | |
using | InterfaceType = typename Dispatcher::InterfaceType |
The interface type, such as rpc_example::RobotControl. More... | |
using | RequestType = typename Dispatcher::RequestType |
The internal type used to receive requests (function calls) More... | |
using | ReplyType = typename Dispatcher::ReplyType |
The internal type used to send replies (the return values of the function calls) More... | |
Public Member Functions | |
ServiceEndpoint (std::shared_ptr< InterfaceType > service_impl, dds::rpc::Server server, const ServiceParams ¶ms) | |
Construct a new Service Endpoint object. More... | |
void | close () |
Destroys the underlying resources. More... | |
dds::sub::DataReader< RequestType > | request_datareader () |
Accesses the underlying DataReader that receives the requests (function calls) More... | |
dds::pub::DataWriter< ReplyType > | reply_datawriter () |
Accesses the underlying DataWriter that sends the replies (return values from the function calls) More... | |
Manages the DDS entities required to receive function calls and send the return values.
Dispatcher | Internal type generated by rtiddsgen |
Applications shouldn't use this class directly. rtiddsgen
will generate the proper instantiation of this class, such as rpc_example::RobotControlService
A ServiceEndpoint requires a an implementation of an IDL service interface, such as rpc_example::RobotControl.
A ServiceEndpoint is attached to a Server in order to start receiving and processing remote function calls.
using dds::rpc::ServiceEndpoint< Dispatcher >::InterfaceType = typename Dispatcher::InterfaceType |
The interface type, such as rpc_example::RobotControl.
using dds::rpc::ServiceEndpoint< Dispatcher >::RequestType = typename Dispatcher::RequestType |
The internal type used to receive requests (function calls)
using dds::rpc::ServiceEndpoint< Dispatcher >::ReplyType = typename Dispatcher::ReplyType |
The internal type used to send replies (the return values of the function calls)
|
inline |
Construct a new Service Endpoint object.
service_impl | The implementation of the DDS service, such as rpc_example::RobotControl. |
server | The server where to run this service endpoint. |
params | The parameters used to configure this service endpoint |
|
inline |
Destroys the underlying resources.
Any operation after close() throws dds::core::AlreadyClosedError
|
inline |
Accesses the underlying DataReader that receives the requests (function calls)
|
inline |
Accesses the underlying DataWriter that sends the replies (return values from the function calls)