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