Description
Hey everyone,
I note that the listener's add_service()
callback has available to it the coordinates for the custom service that I am tracking. Whenever it comes online this callback can use get_service_info()
to get the host and port.
I note that the listener's remove_service()
callback cannot try to obtain the host and port of the service that just went offline by querying get_service_info()
. The latter will return None
.
My application would like to track a particular service and update a GUI accordingly. When the service comes online it's easy to add the host and port to some kind of GUI list, but I cannot figure out how to determine which server just went down when remove_service()
callback is invoked.
How can I get this information?
Maybe I'm going about this all the wrong way, but presumably this is a common issue others have had in the past.