public class DatagramConnector extends BaseSessionManager implements IoConnector
IoConnector
for datagram transport (UDP/IP).exceptionMonitor
Constructor and Description |
---|
DatagramConnector()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
IoSession |
connect(java.net.SocketAddress address,
int timeout,
IoHandler handler)
Connects to the specified
address with timeout. |
IoSession |
connect(java.net.SocketAddress address,
IoHandler handler)
Connects to the specified
address . |
IoSession |
connect(java.net.SocketAddress address,
java.net.SocketAddress localAddress,
int timeout,
IoHandler handler)
Connects to the specified
address with timeout. |
IoSession |
connect(java.net.SocketAddress address,
java.net.SocketAddress localAddress,
IoHandler handler)
Connects to the specified
address . |
IoFilterChain |
getFilterChain()
Returns the filter chain that filters all events which is related
with sessions this manager manages.
|
getExceptionMonitor, setExceptionMonitor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getExceptionMonitor, setExceptionMonitor
public IoSession connect(java.net.SocketAddress address, IoHandler handler) throws java.io.IOException
IoConnector
address
. If communication starts
successfully, events are fired to the specified
handler
. This method blocks.connect
in interface IoConnector
java.io.IOException
- if failed to connectpublic IoSession connect(java.net.SocketAddress address, int timeout, IoHandler handler) throws java.io.IOException
IoConnector
address
with timeout. If
communication starts successfully, events are fired to the specified
handler
. This method blocks.connect
in interface IoConnector
java.io.IOException
- if failed to connectpublic IoSession connect(java.net.SocketAddress address, java.net.SocketAddress localAddress, int timeout, IoHandler handler) throws java.io.IOException
IoConnector
address
with timeout. If
communication starts successfully, events are fired to the specified
handler
. This method blocks.connect
in interface IoConnector
localAddress
- the local address the channel is bound tojava.io.IOException
- if failed to connectpublic IoSession connect(java.net.SocketAddress address, java.net.SocketAddress localAddress, IoHandler handler) throws java.io.IOException
IoConnector
address
. If communication starts
successfully, events are fired to the specified
handler
. This method blocks.connect
in interface IoConnector
localAddress
- the local address the channel is bound tojava.io.IOException
- if failed to connectpublic IoFilterChain getFilterChain()
IoSessionManager
getFilterChain
in interface IoSessionManager