Without sending data you will not be able to find out, if there still is a connection... See also
Taifun