Package | Description |
---|---|
java.net |
Provides the classes for implementing networking applications.
|
java.nio.channels |
Defines channels, which represent connections to entities that are capable of
performing I/O operations, such as files and sockets; defines selectors, for
multiplexed, non-blocking I/O operations.
|
Modifier and Type | Field | Description |
---|---|---|
static SocketOption<NetworkInterface> |
StandardSocketOptions.IP_MULTICAST_IF |
The network interface for Internet Protocol (IP) multicast datagrams.
|
static SocketOption<Boolean> |
StandardSocketOptions.IP_MULTICAST_LOOP |
Loopback for Internet Protocol (IP) multicast datagrams.
|
static SocketOption<Integer> |
StandardSocketOptions.IP_MULTICAST_TTL |
The time-to-live for Internet Protocol (IP) multicast datagrams.
|
static SocketOption<Integer> |
StandardSocketOptions.IP_TOS |
The Type of Service (ToS) octet in the Internet Protocol (IP) header.
|
static SocketOption<Boolean> |
StandardSocketOptions.SO_BROADCAST |
Allow transmission of broadcast datagrams.
|
static SocketOption<Boolean> |
StandardSocketOptions.SO_KEEPALIVE |
Keep connection alive.
|
static SocketOption<Integer> |
StandardSocketOptions.SO_LINGER |
Linger on close if data is present.
|
static SocketOption<Integer> |
StandardSocketOptions.SO_RCVBUF |
The size of the socket receive buffer.
|
static SocketOption<Boolean> |
StandardSocketOptions.SO_REUSEADDR |
Re-use address.
|
static SocketOption<Boolean> |
StandardSocketOptions.SO_REUSEPORT |
Re-use port.
|
static SocketOption<Integer> |
StandardSocketOptions.SO_SNDBUF |
The size of the socket send buffer.
|
static SocketOption<Boolean> |
StandardSocketOptions.TCP_NODELAY |
Disable the Nagle algorithm.
|
Modifier and Type | Method | Description |
---|---|---|
Set<SocketOption<?>> |
DatagramSocket.supportedOptions() |
Returns a set of the socket options supported by this socket.
|
protected Set<SocketOption<?>> |
DatagramSocketImpl.supportedOptions() |
Returns a set of SocketOptions supported by this impl
and by this impl's socket (DatagramSocket or MulticastSocket)
|
Set<SocketOption<?>> |
MulticastSocket.supportedOptions() |
|
Set<SocketOption<?>> |
ServerSocket.supportedOptions() |
Returns a set of the socket options supported by this server socket.
|
Set<SocketOption<?>> |
Socket.supportedOptions() |
Returns a set of the socket options supported by this socket.
|
protected Set<SocketOption<?>> |
SocketImpl.supportedOptions() |
Returns a set of SocketOptions supported by this impl
and by this impl's socket (Socket or ServerSocket)
|
Modifier and Type | Method | Description |
---|---|---|
<T> T |
DatagramSocket.getOption(SocketOption<T> name) |
Returns the value of a socket option.
|
protected <T> T |
DatagramSocketImpl.getOption(SocketOption<T> name) |
Called to get a socket option.
|
<T> T |
ServerSocket.getOption(SocketOption<T> name) |
Returns the value of a socket option.
|
<T> T |
Socket.getOption(SocketOption<T> name) |
Returns the value of a socket option.
|
protected <T> T |
SocketImpl.getOption(SocketOption<T> name) |
Called to get a socket option.
|
<T> DatagramSocket |
DatagramSocket.setOption(SocketOption<T> name,
T value) |
Sets the value of a socket option.
|
protected <T> void |
DatagramSocketImpl.setOption(SocketOption<T> name,
T value) |
Called to set a socket option.
|
<T> ServerSocket |
ServerSocket.setOption(SocketOption<T> name,
T value) |
Sets the value of a socket option.
|
<T> Socket |
Socket.setOption(SocketOption<T> name,
T value) |
Sets the value of a socket option.
|
protected <T> void |
SocketImpl.setOption(SocketOption<T> name,
T value) |
Called to set a socket option.
|
Modifier and Type | Method | Description |
---|---|---|
Set<SocketOption<?>> |
NetworkChannel.supportedOptions() |
Returns a set of the socket options supported by this channel.
|
Modifier and Type | Method | Description |
---|---|---|
<T> T |
NetworkChannel.getOption(SocketOption<T> name) |
Returns the value of a socket option.
|
abstract <T> AsynchronousServerSocketChannel |
AsynchronousServerSocketChannel.setOption(SocketOption<T> name,
T value) |
|
abstract <T> AsynchronousSocketChannel |
AsynchronousSocketChannel.setOption(SocketOption<T> name,
T value) |
|
abstract <T> DatagramChannel |
DatagramChannel.setOption(SocketOption<T> name,
T value) |
|
<T> NetworkChannel |
NetworkChannel.setOption(SocketOption<T> name,
T value) |
Sets the value of a socket option.
|
abstract <T> ServerSocketChannel |
ServerSocketChannel.setOption(SocketOption<T> name,
T value) |
|
abstract <T> SocketChannel |
SocketChannel.setOption(SocketOption<T> name,
T value) |
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps