I have the following code in my DDS program for java
DomainParticipantFactory.PARTICIPANT_QOS_DEFAULT. discovery.initial_peers.add("239.255.0.50");
DomainParticipantFactory.PARTICIPANT_QOS_DEFAULT. discovery.initial_peers.add("4@builtin.udpv4://127.0.0.1");
DomainParticipantFactory.PARTICIPANT_QOS_DEFAULT. discovery.initial_peers.add("builtin.shmem://");
DomainParticipantFactory.PARTICIPANT_QOS_DEFAULT.discovery.multicast_receive_addresses.clear();
DomainParticipantFactory.PARTICIPANT_QOS_DEFAULT.discovery.multicast_receive_addresses.add("239.255.0.50");
The setting of initial peers works correctly for the DDS code, however when I use the line to set the "multicast_receive_addresses" the address never gets set and keeps defaulting to the default multicast address. Why is my multicast address not getting set?
Hi Jason,
The proper way how to set initial_peers and multicast_receive_addresses programmatically in Java:
Let me know if it is working for you.
Best,
Antonio