|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-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_LEVEL Debbuging 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, InetAddress addr) |
|
TcpDatagramSocket(SocketAddress addr) |
|
TcpDatagramSocket(SocketProvider provider) |
protected |
TcpDatagramSocket(TcpDatagramSocket.Impl impl) |
Method Summary | |
---|---|
void |
bind(SocketAddress addr) |
boolean |
isBound() |
SelectorProvider |
provider() Return the SelectorProvider associated with this socket. |
void |
receive(DatagramPacket p) |
void |
send(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(SocketOptions options) Specify SocketOptions to be used to configure each of the underlying TCP sockets. |
String |
toString() |
Field Detail |
---|
public static final int IO_EXCEPTIONS_LOG_LEVEL
protected TcpDatagramSocket.Impl m_impl
Constructor Detail |
---|
public TcpDatagramSocket() throws SocketException
SocketException
public TcpDatagramSocket(SocketAddress addr) throws SocketException
SocketException
public TcpDatagramSocket(int nPort) throws SocketException
SocketException
public TcpDatagramSocket(int nPort, InetAddress addr) throws SocketException
SocketException
public TcpDatagramSocket(SocketProvider provider) throws IOException
IOException
protected TcpDatagramSocket(TcpDatagramSocket.Impl impl)
Method Detail |
---|
public SelectorProvider provider()
public void setSocketOptions(SocketOptions options)
options
- the SocketOptionspublic void setListenBacklog(int n) throws IOException
n
- the depth of the backlog, or <=0 for the OS default.IOException
- if the socket is already boundpublic void setPacketMagic(int nMagic, int nMask) throws IOException
nMagic
- the packet headernMask
- the packet header bitmask identifying the bits usedIOException
- if the socket is already boundpublic void setAdvanceFrequency(int nAdvance)
nAdvance
- the packet frequency at which to advance between peerspublic void bind(SocketAddress addr) throws SocketException
bind
in class DatagramSocket
SocketException
public boolean isBound()
isBound
in class DatagramSocket
public void send(DatagramPacket p) throws IOException
send
in class DatagramSocket
IOException
public void receive(DatagramPacket p) throws IOException
receive
in class DatagramSocket
IOException
public String toString()
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |