| java.net.SocketOptions
All known Subclasses: java.net.DatagramSocketImpl, java.net.SocketImpl,
SocketOptions | public interface SocketOptions (Code) | | Defines the protocol to get & set Socket options.
|
Method Summary | |
public Object | getOption(int optID) Answer the declared socket option. | public void | setOption(int optID, Object val) Set the declared socket option to the value. |
IP_MULTICAST_IF | final public static int IP_MULTICAST_IF(Code) | | |
IP_MULTICAST_IF2 | final public static int IP_MULTICAST_IF2(Code) | | |
IP_MULTICAST_LOOP | final public static int IP_MULTICAST_LOOP(Code) | | |
IP_TOS | final public static int IP_TOS(Code) | | |
SO_BINDADDR | final public static int SO_BINDADDR(Code) | | |
SO_BROADCAST | final public static int SO_BROADCAST(Code) | | |
SO_KEEPALIVE | final public static int SO_KEEPALIVE(Code) | | |
SO_LINGER | final public static int SO_LINGER(Code) | | |
SO_OOBINLINE | final public static int SO_OOBINLINE(Code) | | |
SO_RCVBUF | final public static int SO_RCVBUF(Code) | | |
SO_REUSEADDR | final public static int SO_REUSEADDR(Code) | | |
SO_SNDBUF | final public static int SO_SNDBUF(Code) | | |
SO_TIMEOUT | final public static int SO_TIMEOUT(Code) | | |
TCP_NODELAY | final public static int TCP_NODELAY(Code) | | |
getOption | public Object getOption(int optID) throws SocketException(Code) | | Answer the declared socket option.
Object the option value Parameters: optID - the option identifier exception: SocketException - thrown if an error occurs getting the option |
setOption | public void setOption(int optID, Object val) throws SocketException(Code) | | Set the declared socket option to the value.
Parameters: optID - the option identifier Parameters: val - the option value to be set exception: SocketException - thrown if an error occurs setting the option |
|
|