Hi,
I need to know IP addresses of hosts of participants subscribing a specific Topic. Is there a built-in topic that contains IP addresses of hosts? How to find this information from the middleware?
Thanks!
Hi,
I need to know IP addresses of hosts of participants subscribing a specific Topic. Is there a built-in topic that contains IP addresses of hosts? How to find this information from the middleware?
Thanks!
Hi,
Yes, IP addresses of hosts of participants are propagated via the Discovery builtin-topics. There are builtin DDS Readers and Writers that allow you to access it. They are in the ParticipantBuiltinTopicData in the fields metatraffic_unicast_locators and default_unicast_locators. Unfortunately the latest HTML documentation had a bug and is not showing some of the attributes but you can see then in the C/C++ header or Java interface files.
You see an example on how to access the information of the builtin topics in the Detect the presence of DomainParticipants, DataWriters and DataReaders in the DDS Domain.
Gerardo
Updated link for:
Detect the presence of DomainParticipants, DataWriters and DataReaders in the DDS Domain
https://community.rti.com/howto/detect-presence-domainparticipants-datawriters-and-datareaders-dds-domain