Is it possible to monitor the number of connections to a TCP server currently? I need to be able to detect once the number of connections has dropped to zero to do some cleanup, and I am at a loss to work out how to do that.