Results 1 to 2 of 2
  1. #1
    rajdotme is offline Member
    Join Date
    Apr 2008
    Rep Power

    Default How to configure "keep alive" in Sockets?


    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,

  2. #2
    femi is offline Member
    Join Date
    Apr 2008
    Rep Power

Similar Threads

  1. Hwlp with "Open", "Save", "Save as..."
    By trill in forum New To Java
    Replies: 3
    Last Post: 11-02-2010, 09:26 AM
  2. Replies: 1
    Last Post: 03-14-2008, 02:51 PM
  3. Replies: 1
    Last Post: 07-27-2007, 10:59 PM
  4. Replies: 1
    Last Post: 07-25-2007, 10:55 PM
  5. Replies: 1
    Last Post: 07-16-2007, 06:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts