Reader with IP X.X.X.X disconnected unexpectedly

2 posts / 0 new
Last post
Offline
Last seen: 2 weeks 1 day ago
Joined: 10/03/2024
Posts: 6
How to detect data reader disconnection (Reader with IP X.X.X.X disconnected unexpectedly)

We are using a DataWriterListener and want to log the IP address of a DataReader whenever it disconnects abruptly. Specifically, we want to log a message like:
"Reader with IP X.X.X.X disconnected unexpectedly."
Is the on_liveliness_lost callback the correct method to detect such disconnections? If so, how can we log the reader's IP address from within this callback?

Subscribe to RSS - Reader with IP X.X.X.X disconnected unexpectedly