Hi. I'm using DDS RTI 5.3.0 with the Modern C++ API. I'm using DDS to communicate an app, which serves as a front-end and has several DataReaders, with a separate app that works as the backend and consequently has several DataWriters.
Users interact with the front-end app and should be able to know whether the backend is alive, so I thought it would be nice to check whether there are DataWriters publishing the topics for the DataReaders to read. I've used two alternatives:
mProcessorPerformanceReader.subscription_matched_status().current_count()
and