You can access individual communication status for a DataReader with the operations shown in Table 1 DataReader Status Operations.
Use this operation... |
...to retrieve this status: |
All of the above |
|
These methods are useful in the event that no Listener callback is set to receive notifications of status changes. If a Listener is used, the callback will contain the new status information, in which case calling these methods is unlikely to be necessary.
The get_status_changes() operation provides a list of statuses that have changed since the last time the status changes were ‘reset.’ A status change is reset each time the application calls the corresponding get_*_status(), as well as each time Connext DDS returns from calling the Listener callback associated with that status.
For more on status, see 8.3.4 Setting Up DataReaderListeners, 8.3.7 Statuses for DataReaders, and 4.4 Listeners.
© 2020 RTI