Learning about Discovered Topics

The get_discovered_topics() operation provides you with a list of Topics that have been discovered in the DDS domain (except any that you have said to ignore via the ignore_topic() operation (see Restricting Communication—Ignoring Entities)).

Once you have a list of discovered Topics, you can get more information about them by calling the get_discovered_topic_data() operation. This operation can only be used on Topics that have been created by a DomainParticipant in the same DDS domain as the participant on which this operation is invoked and must not have been "ignored" by means of the DomainParticipant ignore_topic() operation. Otherwise, the operation will fail and return DDS_RETCODE_PRECONDITION_NOT_MET. The returned information is of type DDS_TopicBuiltinTopicData, described in Topic Built-in Topic’s Data Type (DDS_TopicBuiltinTopicData) .

© 2018 RTI