@@ -113,26 +113,6 @@ static void config_micro()
113113 return ;
114114 }
115115
116- /* For additional allowed interface(s), increase maximum and length, and
117- set interface below:
118- */
119- if (!udp_property->allow_interface .maximum (1 ))
120- {
121- printf (" ERROR: unable to set allow_interface maximum\n " );
122- return ;
123- }
124- if (!udp_property->allow_interface .length (1 ))
125- {
126- printf (" ERROR: unable to set allow_interface length\n " );
127- return ;
128- }
129-
130- #if defined(RTI_LINUX)
131- udp_property->allow_interface [0 ] = DDS_String_dup (" lo" );
132- #elif defined(RTI_DARWIN)
133- udp_property->allow_interface [0 ] = DDS_String_dup (" lo0" );
134- #endif
135-
136116 if (!registry->register_component (
137117 NETIO_DEFAULT_UDP_NAME,
138118 UDPInterfaceFactory::get_interface (),
@@ -171,15 +151,17 @@ static bool configure_dp_qos(DDS::DomainParticipantQos &dp_qos)
171151 return false ;
172152 }
173153
174- dp_qos.discovery .initial_peers .maximum (1 );
175- dp_qos.discovery .initial_peers .length (1 );
154+ dp_qos.discovery .initial_peers .maximum (2 );
155+ dp_qos.discovery .initial_peers .length (2 );
176156 dp_qos.discovery .initial_peers [0 ] = DDS_String_dup (" 127.0.0.1" );
157+ dp_qos.discovery .initial_peers [1 ] = DDS_String_dup (" _udp://239.255.0.1" );
158+
177159 /* if there are more remote or local endpoints, you need to increase these limits */
178160 dp_qos.resource_limits .max_destination_ports = 32 ;
179161 dp_qos.resource_limits .max_receive_ports = 32 ;
180162 dp_qos.resource_limits .local_topic_allocation = 8 ;
181163 dp_qos.resource_limits .local_type_allocation = 8 ;
182- // TODO we need to increase this
164+
183165 dp_qos.resource_limits .local_reader_allocation = 8 ;
184166 dp_qos.resource_limits .local_writer_allocation = 8 ;
185167 dp_qos.resource_limits .remote_participant_allocation = 16 ;
0 commit comments