Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Example Refactor: Request-Reply (#5014)
* Refs #21188: Update header guards in other examples Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: CLIParser and example skeleton Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Add IDL and type support Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Add Server initialization Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Add Server on_subscription_matched Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Add Client initialization Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Add Client on_publication_matched Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Uncrustify Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Code grouping Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Refactor matched status and create a utils header Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Client waits until a server is fully matched Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Server runs until it is stopped Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Client sends requests which are put in a queue Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Rename reply z to result Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Server sends reply and client waits for it Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Move type support to dedicated directory Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Server reply history cleanup when possible Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Client uses CFT to only receive replies to its requests Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Client waits before sending request Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Add logging utils Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Client SIGINT exit before any server has matched Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Add debug logging Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Add request ID to log messages Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Add small TODO for follow-up PR to fulfil Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Add context to log messages Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Add tests Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Add README.md Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Add versions Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Remove old example Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Address minor Eliana's comments Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Remove operation param from CLI. Client always requests + Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Add space between doxygen @param and direction specifier Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Client sends 1 request per operation and waits for all replies Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Fix data race on reader filter removal Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Unmatch participant on participant removed Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Add DomainParticipantFactory::get_participant_extended_qos_from_default_profile Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Server ignores non-client participants Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Client ignores non-server participants Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Improve client log Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Update tests Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Increase timeouts for CI testing Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Adjust for change in write return type Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Fix data race between requests_status_ init and update Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Take timeouts back to 3s Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Remove compose name from clients to cope with different docker compose versions Signed-off-by: eduponz <eduardoponz@eprosima.com> * Refs #21188: Apply Eliana's suggestions Signed-off-by: eduponz <eduardoponz@eprosima.com> --------- Signed-off-by: eduponz <eduardoponz@eprosima.com>
- Loading branch information