API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.net. SocketOptions View Source
Author(s)
David Brown
Since
Version
1.33, 11/17/05
Serial
Hierarchy
 SocketOptions
Subinterfaces
Description
public interface SocketOptions
  Interface of methods to get/set socket options.
See also:   
Methods
Hide/Show inherited methods
public Object getOption (int optID) throws SocketException
  Fetch the value of an option.
public void setOption (int optID, Object value) throws SocketException
  Enable/disable the option specified by optID.
Fields
Hide/Show inherited fields
publicfinalstatic int IP_MULTICAST_IF = "16"
  Set which outgoing interface on which to send multicast packets.
publicfinalstatic int IP_MULTICAST_IF2 = "31"
  Same as above.
publicfinalstatic int IP_MULTICAST_LOOP = "18"
  This option enables or disables local loopback of multicast datagrams.
publicfinalstatic int IP_TOS = "3"
  This option sets the type-of-service or traffic class field in the IP header for a TCP or UDP socket.
publicfinalstatic int SO_BINDADDR = "15"
  Fetch the local address binding of a socket (this option cannot be "set" only "gotten", since sockets are bound at creation time, and so the locally bound address cannot be changed).
publicfinalstatic int SO_BROADCAST = "32"
  Sets SO_BROADCAST for a socket.
publicfinalstatic int SO_KEEPALIVE = "8"
  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.
publicfinalstatic int SO_LINGER = "128"
  Specify a linger-on-close timeout.
publicfinalstatic int SO_OOBINLINE = "4099"
  When the OOBINLINE option is set, any TCP urgent data received on the socket will be received through the socket input stream.
publicfinalstatic int SO_RCVBUF = "4098"
  Set a hint the size of the underlying buffers used by the platform for incoming network I/O.
publicfinalstatic int SO_REUSEADDR = "4"
  Sets SO_REUSEADDR for a socket.
publicfinalstatic int SO_SNDBUF = "4097"
  Set a hint the size of the underlying buffers used by the platform for outgoing network I/O.
publicfinalstatic int SO_TIMEOUT = "4102"
  Set a timeout on blocking Socket operations:
publicfinalstatic int TCP_NODELAY = "1"
  Disable Nagle's algorithm for this connection.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar