RTI Connext Modern C++ API Version 7.2.0
|
<<reference-type>> Manages the DDS entities required to make remote function calls. More...
#include <dds/rpc/ClientEndpoint.hpp>
Public Types | |
using | RequestType = Request |
The type used to make function calls. More... | |
using | ReplyType = Reply |
The type used to receive the results of function calls. More... | |
Public Member Functions | |
ClientEndpoint (const ClientParams ¶ms) | |
Creates a new ClientEndpoint. More... | |
void | close () |
Destroyes the underlying requester and other resources. More... | |
bool | closed () const |
Whether this instance has been closed already. More... | |
void | wait_for_service (const dds::core::Duration &maxWait) |
Waits for one or more services to be discovered. More... | |
void | wait_for_service () |
Waits for one or more services to be discovered for an unlimited period of time. More... | |
dds::pub::DataWriter< RequestType > | request_datawriter () const |
Accesses the underlying DataWriter that sends the requests (function calls) More... | |
dds::sub::DataReader< ReplyType > | reply_datareader () const |
Accesses the underlying DataReader that receives the replies (return values from the function calls) More... | |
<<reference-type>> Manages the DDS entities required to make remote function calls.
This class is always the base of a concrete client, such as rpc_example::RobotControlClient.
using dds::rpc::ClientEndpoint< Request, Reply >::RequestType = Request |
The type used to make function calls.
using dds::rpc::ClientEndpoint< Request, Reply >::ReplyType = Reply |
The type used to receive the results of function calls.
|
inlineexplicit |
Creates a new ClientEndpoint.
|
inline |
Destroyes the underlying requester and other resources.
Any operation after close() throws dds::core::AlreadyClosedError
|
inline |
Whether this instance has been closed already.
|
inline |
Waits for one or more services to be discovered.
maxWait | The maximum time to wait, after which dds::core::TimeoutError is thrown. |
|
inline |
Waits for one or more services to be discovered for an unlimited period of time.
|
inline |
Accesses the underlying DataWriter that sends the requests (function calls)
|
inline |
Accesses the underlying DataReader that receives the replies (return values from the function calls)