public class NonBlockingTcpDatagramSocket extends TcpDatagramSocket
| Modifier and Type | Class and Description |
|---|---|
static class |
NonBlockingTcpDatagramSocket.Impl
A specialization of
TcpDatagramSocket.Impl which provides
non-blocking functionality, see NonBlockingTcpDatagramSocket.Impl.send(DatagramPacket). |
| Modifier and Type | Field and Description |
|---|---|
static boolean |
SPLIT
Flag indicating if split sockets should be used for TcpDatagram sockets.
|
IO_EXCEPTIONS_LOG_LEVEL, m_impl| Modifier | Constructor and Description |
|---|---|
|
NonBlockingTcpDatagramSocket()
Create a new NonBlockingTcpDatagramSocket that with a wildcard address
bound to an ephemeral port.
|
|
NonBlockingTcpDatagramSocket(int nPort)
Creates a new NonBlockingTcpDatagramSocket using the wildcard address
and the specified port number.
|
|
NonBlockingTcpDatagramSocket(int nPort,
InetAddress addr)
Creates a new NonBlockingTcpDatagramSocket using an
address and a port number. |
protected |
NonBlockingTcpDatagramSocket(NonBlockingTcpDatagramSocket.Impl impl)
Creates a new NonBlockingTcpDatagramSocket around an
NonBlockingTcpDatagramSocket.Impl. |
|
NonBlockingTcpDatagramSocket(SocketAddress addr)
Creates a new NonBlockingTcpDatagramSocket which will be bound to the
specified
address. |
|
NonBlockingTcpDatagramSocket(com.oracle.coherence.common.net.SocketProvider provider)
Creates a new NonBlockingTcpDatagramSocket using the
provider. |
bind, isBound, receive, send, setAdvanceFrequency, setListenBacklog, setPacketMagic, setSocketOptions, toStringclose, connect, connect, disconnect, getBroadcast, getChannel, getInetAddress, getLocalAddress, getLocalPort, getLocalSocketAddress, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoTimeout, getTrafficClass, isClosed, isConnected, setBroadcast, setDatagramSocketImplFactory, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSoTimeout, setTrafficClasspublic static final boolean SPLIT
public NonBlockingTcpDatagramSocket()
throws SocketException
SocketException - if any error happens during the bind, or if the
port is unavailablepublic NonBlockingTcpDatagramSocket(SocketAddress addr) throws SocketException
address.addr - the address to bindSocketException - if any error happens during the bind,
or if the port is unavailablepublic NonBlockingTcpDatagramSocket(int nPort)
throws SocketException
The port number should be between 0 and 65535. Zero means that the system will pick an ephemeral port during the bind operation.
nPort - the port to bind toSocketException - if any error happens during the bind,
or if the port is unavailablepublic NonBlockingTcpDatagramSocket(int nPort,
InetAddress addr)
throws SocketException
address and a port number.
If null is specified as the address assigned will be the
wildcard address.
The port number should be between 0 and 65535. Zero means that the system will pick an ephemeral port during the bind operation.
nPort - the port numberaddr - the IP addressSocketException - if any error happens during the bind,
or if the port is unavailablepublic NonBlockingTcpDatagramSocket(com.oracle.coherence.common.net.SocketProvider provider)
throws SocketException
provider.provider - the provider to be usedSocketException - if any error happens during the bind,
or if the port is unavailableprotected NonBlockingTcpDatagramSocket(NonBlockingTcpDatagramSocket.Impl impl)
NonBlockingTcpDatagramSocket.Impl.impl - a NonBlockingTcpDatagramSocket.Impl