NDDS_Transport_Property_t problem

2 posts / 0 new
Last post
Offline
Last seen: 2 years 7 months ago
Joined: 01/13/2016
Posts: 43
NDDS_Transport_Property_t problem

Hi, 

     I am wondering whether I can change the property of udpv4, i called the function "NDDS_Transport_Support_set_builtin_transport_property" after participant was created. but it shows that "Error: participant has been enabled". what should i do?

     I use RTIDDS version 5.2.0. thanks for your reply.

gianpiero's picture
Offline
Last seen: 1 year 6 months ago
Joined: 06/02/2010
Posts: 174

Hello,

You can definetely change UDPv4 properties, but you should always do it the transport is registered. The error you are seeing is telling you that the participant has already been enabled, so you cannot longer change the transport properties. 

The way to do it, is to create the participant disabled (by setting autoenable_created_entities to false in the participantFactoryQos), then call  NDDS_Transport_Support_set_builtin_transport_property and finally enable the participant. 

Best,
  Gianpiero