File tree Expand file tree Collapse file tree 2 files changed +2
-21
lines changed
tests/DCPS/RecorderReplayer Expand file tree Collapse file tree 2 files changed +2
-21
lines changed Original file line number Diff line number Diff line change 25
25
26
26
#include < ace/Condition_Thread_Mutex.h>
27
27
28
- bool
29
- make_dr_reliable ()
30
- {
31
- OpenDDS::DCPS::TransportConfig_rch gc = TheTransportRegistry->global_config ();
32
- return gc->instances_ [0 ]->name () == " the_rtps_transport" ;
33
- }
34
-
35
28
class MessengerReplayerListener : public OpenDDS ::DCPS::ReplayerListener {
36
29
public:
37
30
virtual void on_replayer_matched (OpenDDS::DCPS::Replayer*,
@@ -238,10 +231,7 @@ int run_test(int argc, ACE_TCHAR *argv[])
238
231
sub_qos.partition .name = my_partition1;
239
232
240
233
DDS::DataReaderQos dr_qos = service->initial_DataReaderQos ();
241
-
242
- if (make_dr_reliable ()) {
243
- dr_qos.reliability .kind = DDS::RELIABLE_RELIABILITY_QOS;
244
- }
234
+ dr_qos.reliability .kind = DDS::RELIABLE_RELIABILITY_QOS;
245
235
246
236
// Create Recorder
247
237
OpenDDS::DCPS::Recorder_var recorder = service->create_recorder (participant,
Original file line number Diff line number Diff line change 25
25
# include < dds/DCPS/transport/shmem/Shmem.h>
26
26
#endif
27
27
28
- bool
29
- make_dr_reliable ()
30
- {
31
- OpenDDS::DCPS::TransportConfig_rch gc = TheTransportRegistry->global_config ();
32
- return gc->instances_ [0 ]->name () == " the_rtps_transport" ;
33
- }
34
-
35
28
int
36
29
ACE_TMAIN (int argc, ACE_TCHAR *argv[])
37
30
{
@@ -104,9 +97,7 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[])
104
97
105
98
DDS::DataReaderQos dr_qos;
106
99
subscriber->get_default_datareader_qos (dr_qos);
107
- if (make_dr_reliable ()) {
108
- dr_qos.reliability .kind = DDS::RELIABLE_RELIABILITY_QOS;
109
- }
100
+ dr_qos.reliability .kind = DDS::RELIABLE_RELIABILITY_QOS;
110
101
111
102
DDS::DataReader_var reader = subscriber->create_datareader (topic,
112
103
dr_qos,
You can’t perform that action at this time.
0 commit comments