thanks for response.. Sadly, this is not an option, cause server on the other side doesn't allow me to do that....
I've read something about keep alive or something, but only in connection to C TCP sockets... There must be some other way to check this without sending on tcp or not ?