in reply to Re: How to find out whether socket is still connected?
in thread How to find out whether socket is still connected?

lsof -Pni :80
will also do the trick. Of course substituting your port number for 80.

Ted
--
"That which we persist in doing becomes easier, not that the task itself has become easier, but that our ability to perform it has improved."
  --Ralph Waldo Emerson