|
RTI Connext Modern C++ API Version 7.7.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... | |
| bool | wait_for_service (const dds::core::Duration &max_wait=dds::core::Duration::infinite()) |
| Waits for one or more services to be discovered. This function takes advantage of enhanced discovery, making sure both the Client and the Service discover each other. 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. This function takes advantage of enhanced discovery, making sure both the Client and the Service discover each other.
| max_wait | The maximum time to wait. Default: dds::core::Duration::infinite() (unlimited period to wait). |
| dds::core::AlreadyClosedError | if the Client is closed while waiting. |
|
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)