Is it possible turn off multicast after reading in a qos file that has it set? I am reading in a qos file using this:
retcode = dds_factory->get_participant_qos_from_profile(interfaceDomainParticipantQos, "Definitions", "common");
where this profile has it set. But then try to unset multicast_enable:
retcode = DDSPropertyQosPolicyHelper::add_property( interfaceDomainParticipantQos.property,
"dds.transport.UDPv4.builtin.multicast_enabled", "0",
DDS_BOOLEAN_FALSE);
But getting a return code of 4 which is PRECONDITION_NOT_MET
Is this not allowed? Is there some other step to doing it this way? Can this only be done when getting a default qos?
Hi Michael,
Any transport property changes made after the plugin is registered will have no effect.
Reference: Builtin Transport Plugins in the Core Libraries User's Manual.
Regards,
Matt