When I have a SOCK_STREAM socket connection established (TCP/IP), is there a
way to detect a loss of communication without using application-level
heartbeats? For example, if someone unplugs the ethernet cable can I detect
this and close the socket? In the past, I have used application level
heartbeats (dummy messages) at a specified interval. If the interval
expires, I deem the connection lost and close the socket. Now I’m
connecting to a piece of equipment that does not support application
heartbeats. Any suggestions?
Thanks,
Chris Southern