Skip to content

Commit f1e70cb

Browse files
authored
Feature/routing 1292 and record-1523 (#727)
* ROUTING-1292 RECORD-1523: Fixed the request reply configuration for C++11
1 parent db7fc05 commit f1e70cb

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

examples/recording_service/service_admin/c++11/Requester.cxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,11 @@ Application::Application(ArgumentsParser &args_parser)
453453
dds::core::QosProvider::Default().datawriter_qos(
454454
"ServiceAdministrationProfiles::"
455455
"ServiceAdminRequesterProfile"));
456+
457+
// configure the requester for compatibility with the RTI routing service
458+
// request reply.
459+
requester_params_.require_matching_service_on_send_request(false);
460+
456461
/*
457462
* Now that we have set up all the parameters for the requester instance, we
458463
* can create it.

examples/routing_service/remote_admin/c++11/src/Requester.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ int main(int argc, char *argv[])
6464
rti::request::RequesterParams requester_params(participant);
6565
requester_params.request_topic_name(COMMAND_REQUEST_TOPIC_NAME);
6666
requester_params.reply_topic_name(COMMAND_REPLY_TOPIC_NAME);
67+
// configure the requester for compatibility with the RTI routing
68+
// service request reply.
69+
requester_params.require_matching_service_on_send_request(false);
6770

6871
rti::request::Requester<
6972
RTI::Service::Admin::CommandRequest,

0 commit comments

Comments
 (0)