title: Java TCP options
body: <p>C/Linux has the following...</p>
  
  <blockquote>
    <p>TCP_KEEPCNT (since Linux 2.4)
                  The  maximum  number of keepalive probes TCP should send
    before dropping the con-
                  nection.  This option should not be used in code intended to
    be portable.</p>
  
  <pre><code>   TCP_KEEPIDLE (since Linux 2.4)
            The time (in seconds) the connection needs to remain idle
  </code></pre>
    
    <p>before TCP starts send-
                  ing  keepalive  probes,  if  the  socket option SO_KEEPALIVE
    has been set on this
                  socket.  This option should not be used in code intended to
    be portable.</p>
  
  <pre><code>   TCP_KEEPINTVL (since Linux 2.4)
            The time (in seconds) between individual keepalive probes.  
  </code></pre>
    
    <p>This  option  should
                  not be used in code intended to be portable.</p>
  </blockquote>
  
  <p>I know there are portability issues with these but is there anyway to alter these in Java on a Socket?</p>