|
Oracle® Coherence Java API Reference Release 3.6.1.0 E18814-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
java.net.DatagramSocket
com.tangosol.net.TcpDatagramSocket
public class TcpDatagramSocket
TCP based datagram socket implementation.
| Nested Class Summary | |
|---|---|
static class |
TcpDatagramSocket.Impl |
| Field Summary | |
|---|---|
static int |
IO_EXCEPTIONS_LOG_LEVELDebbuging flag for logging an IO exceptions which occur, set to a negative to disable the logging. |
protected TcpDatagramSocket.Impl |
m_impl |
| Constructor Summary | |
|---|---|
|
TcpDatagramSocket() |
|
TcpDatagramSocket(int nPort) |
|
TcpDatagramSocket(int nPort, java.net.InetAddress addr) |
|
TcpDatagramSocket(java.net.SocketAddress addr) |
|
TcpDatagramSocket(SocketProvider provider) |
protected |
TcpDatagramSocket(TcpDatagramSocket.Impl impl) |
| Method Summary | |
|---|---|
void |
bind(java.net.SocketAddress addr) |
boolean |
isBound() |
java.nio.channels.spi.SelectorProvider |
provider()Return the SelectorProvider associated with this socket. |
void |
receive(java.net.DatagramPacket p) |
void |
send(java.net.DatagramPacket p) |
void |
setAdvanceFrequency(int nAdvance)Specify the frequency at which the DatagramSocket will advance over the sub-sockets during receive. |
void |
setListenBacklog(int n)Specify the listen backlog for the server socket. |
void |
setPacketMagic(int nMagic, int nMask)Specify the packet header which is included at the start of every packet. |
void |
setSocketOptions(java.net.SocketOptions options)Specify SocketOptions to be used to configure each of the underlying TCP sockets. |
java.lang.String |
toString() |
| Methods inherited from class java.net.DatagramSocket |
|---|
close, connect, connect, disconnect, getBroadcast, getChannel, getInetAddress, getLocalAddress, getLocalPort, getLocalSocketAddress, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoTimeout, getTrafficClass, isClosed, isConnected, setBroadcast, setDatagramSocketImplFactory, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSoTimeout, setTrafficClass |
| Field Detail |
|---|
public static final int IO_EXCEPTIONS_LOG_LEVEL
protected TcpDatagramSocket.Impl m_impl
| Constructor Detail |
|---|
public TcpDatagramSocket()
throws java.net.SocketException
java.net.SocketException
public TcpDatagramSocket(java.net.SocketAddress addr)
throws java.net.SocketException
java.net.SocketException
public TcpDatagramSocket(int nPort)
throws java.net.SocketException
java.net.SocketException
public TcpDatagramSocket(int nPort,
java.net.InetAddress addr)
throws java.net.SocketException
java.net.SocketException
public TcpDatagramSocket(SocketProvider provider)
throws java.io.IOException
java.io.IOExceptionprotected TcpDatagramSocket(TcpDatagramSocket.Impl impl)
| Method Detail |
|---|
public java.nio.channels.spi.SelectorProvider provider()
public void setSocketOptions(java.net.SocketOptions options)
throws java.net.SocketException
options - the SocketOptionsjava.net.SocketException - if the options fail to be set
public void setListenBacklog(int n)
throws java.io.IOException
n - the depth of the backlog, or <=0 for the OS default.java.io.IOException - if the socket is already bound
public void setPacketMagic(int nMagic,
int nMask)
throws java.io.IOException
nMagic - the packet headernMask - the packet header bitmask identifying the bits usedjava.io.IOException - if the socket is already boundpublic void setAdvanceFrequency(int nAdvance)
nAdvance - the packet frequency at which to advance between peers
public void bind(java.net.SocketAddress addr)
throws java.net.SocketException
bind in class java.net.DatagramSocketjava.net.SocketExceptionpublic boolean isBound()
isBound in class java.net.DatagramSocket
public void send(java.net.DatagramPacket p)
throws java.io.IOException
send in class java.net.DatagramSocketjava.io.IOException
public void receive(java.net.DatagramPacket p)
throws java.io.IOException
receive in class java.net.DatagramSocketjava.io.IOExceptionpublic java.lang.String toString()
|
Oracle® Coherence Java API Reference Release 3.6.1.0 E18814-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||