View Single Post
  #1 (permalink)  
Old 04-16-2008, 02:02 PM
rajdotme rajdotme is offline
Member
 
Join Date: Apr 2008
Posts: 1
rajdotme is on a distinguished road
How to configure "keep alive" in Sockets?
Hi,

I understand, Socket.setkeepalive() enables the user to keep the socket alive.

Here is an extract from the SocketOptions interface from the Sun site about the SO_KEEPALIVE variable:
When the keepalive option is set for a TCP socket and no data has been exchanged across the socket in either direction for 2 hours (NOTE: the actual value is implementation dependent), TCP automatically sends a keepalive probe to the peer

My question is: Can we change the value of keepalive? If yes, how?

Thanks in advance,
Raj
Reply With Quote
Sponsored Links