|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.mina.common.BaseSessionManager org.apache.mina.io.datagram.DatagramConnector
public class DatagramConnector
IoConnector
for datagram transport (UDP/IP).
Field Summary |
---|
Fields inherited from class org.apache.mina.common.BaseSessionManager |
---|
exceptionMonitor |
Constructor Summary | |
---|---|
DatagramConnector()
Creates a new instance. |
Method Summary | |
---|---|
IoSession |
connect(SocketAddress address,
int timeout,
IoHandler handler)
Connects to the specified address with timeout. |
IoSession |
connect(SocketAddress address,
IoHandler handler)
Connects to the specified address . |
IoSession |
connect(SocketAddress address,
SocketAddress localAddress,
int timeout,
IoHandler handler)
Connects to the specified address with timeout. |
IoSession |
connect(SocketAddress address,
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. |
Methods inherited from class org.apache.mina.common.BaseSessionManager |
---|
getExceptionMonitor, setExceptionMonitor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.mina.common.SessionManager |
---|
getExceptionMonitor, setExceptionMonitor |
Constructor Detail |
---|
public DatagramConnector()
Method Detail |
---|
public IoSession connect(SocketAddress address, IoHandler handler) throws IOException
IoConnector
address
. If communication starts
successfully, events are fired to the specified
handler
. This method blocks.
connect
in interface IoConnector
IOException
- if failed to connectpublic IoSession connect(SocketAddress address, int timeout, IoHandler handler) throws IOException
IoConnector
address
with timeout. If
communication starts successfully, events are fired to the specified
handler
. This method blocks.
connect
in interface IoConnector
IOException
- if failed to connectpublic IoSession connect(SocketAddress address, SocketAddress localAddress, int timeout, IoHandler handler) throws 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 to
IOException
- if failed to connectpublic IoSession connect(SocketAddress address, SocketAddress localAddress, IoHandler handler) throws 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 to
IOException
- if failed to connectpublic IoFilterChain getFilterChain()
IoSessionManager
getFilterChain
in interface IoSessionManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |