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?
DataWriterListener
