Can I get notified when discovery process has finished?

2 posts / 0 new
Last post
Offline
Last seen: 2 years 5 months ago
Joined: 03/03/2015
Posts: 19
Can I get notified when discovery process has finished?

Hey all

Does DDS have the possibility to notify a Data Writer or a Data Reader when the discovery process has finished between them. I know that I can use the DataWriterListerner and the DataReaderListener "on_subscription_matched()" and "on_publication_matched()", but is there another way to figure out that the discovery process has finished between them or is this the only way?

Thank you!

Best regards,

Andrei

Organization:
Offline
Last seen: 4 months 3 weeks ago
Joined: 02/11/2016
Posts: 142

Hey Andrei,

Using an entity listener would be the way to be notified, you can also use (i think) waitsets to achieve a similar result.

Another option is to poll for the publication_matched_status (or subscription_matched_status) of the relevant reader/writer.

What problem do you have with using the listeners?

 

Roy.