Specifically for the VoIP Software Mumble.
I have a fairly choppy connection to my frequented server and when it breaks I'd like to update a data file with various statistics at the time. I have all the code worked out for the statistics gathering, however I am not sure how to have this code trigger when the connection itself breaks. I've given psutil a go but could not find any connections from Mumble listed under the output.
Is there any kind of Python library that would allow me to monitor a programs active connection to a server and take action when it detects it has been broken?