Skip to content

Commit 3c11ca4

Browse files
committed
SEC-2914 avoid recursivity in cds example profile
1 parent 4712746 commit 3c11ca4

3 files changed

Lines changed: 15 additions & 19 deletions

File tree

examples/connext_secure/cds/c++11/CDS_publisher.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ void run_publisher_application(
3131
dds::domain::DomainParticipant participant(
3232
domain_id,
3333
dds::core::QosProvider::Default().participant_qos(
34-
"lite_library::lite_peer"));
34+
"library_cds::peer"));
3535

3636
// Create a Topic with a name and a datatype
3737
dds::topic::Topic<Example> topic(participant, "CDS LWS Example");

examples/connext_secure/cds/c++11/CDS_subscriber.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void run_subscriber_application(
4646
dds::domain::DomainParticipant participant(
4747
domain_id,
4848
dds::core::QosProvider::Default().participant_qos(
49-
"lite_library::lite_peer"));
49+
"library_cds::peer"));
5050

5151
// Create a Topic with a name and a datatype
5252
dds::topic::Topic<Example> topic(participant, "CDS LWS Example");

examples/connext_secure/cds/c++11/USER_QOS_PROFILES.xml

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ to use the software. -->
1616
1717
A QoS library is a named set of QoS profiles.
1818
-->
19-
<qos_library name="lite_library">
19+
<qos_library name="library_cds">
2020

2121
<qos_profile name="insecure_peer">
22-
2322
<domain_participant_qos>
2423
<transport_builtin>
2524
<mask>UDPv4</mask>
@@ -33,22 +32,9 @@ to use the software. -->
3332
</discovery>
3433

3534
</domain_participant_qos>
36-
37-
3835
</qos_profile>
3936

40-
<qos_profile name="lite_peer" base_name="insecure_peer" is_default_qos="true">
41-
42-
<participant_factory_qos>
43-
<monitoring>
44-
<distribution_settings>
45-
<dedicated_participant>
46-
<participant_qos_profile_name>lite_library::lite_peer</participant_qos_profile_name>
47-
</dedicated_participant>
48-
</distribution_settings>
49-
</monitoring>
50-
</participant_factory_qos>
51-
37+
<qos_profile name="secure_common" base_name="insecure_peer" >
5238
<domain_participant_qos>
5339
<property>
5440
<value>
@@ -78,9 +64,19 @@ to use the software. -->
7864
</element>
7965
</value>
8066
</property>
81-
8267
</domain_participant_qos>
8368
</qos_profile>
8469

70+
<qos_profile name="peer" base_name="secure_common" is_default_qos="true">
71+
<participant_factory_qos>
72+
<monitoring>
73+
<distribution_settings>
74+
<dedicated_participant>
75+
<participant_qos_profile_name>library_cds::secure_common</participant_qos_profile_name>
76+
</dedicated_participant>
77+
</distribution_settings>
78+
</monitoring>
79+
</participant_factory_qos>
80+
</qos_profile>
8581
</qos_library>
8682
</dds>

0 commit comments

Comments
 (0)