At 10:28 AM -0700 10/22/01, Nathan Meyers wrote:
>Whether messing with keepalives will give you the ping functionality
>you really want... that's another question. Keepalive is a TCP option,
>and "ping" usually implies a particular ICMP (!= TCP) protocol request
>and response.

Well, if what he's trying to do is monitor the connection status of 
another machine using a TCP connection, using SO_KEEPALIVE will do 
it.  I'm unsure if there's any way to be notified when a keepalive 
request is sent and acknowledged (I suspect there is if you dig deep 
enough) but even without that, the connection will be automatically 
closed if the other side of the connection stops responding to the 
keepalive.  Actually, it's quite possible that the actual 
SO_KEEPALIVE request is done out-of-band using an ICMP message, since 
ICMP messages are used to report error and status conditions for TCP 
connections, as far as I know.

Avi Cherry


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to