|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.mina.common.BaseSessionManager
org.apache.mina.io.socket.SocketConnector
public class SocketConnector
IoConnector for socket transport (TCP/IP).
| Field Summary |
|---|
| Fields inherited from class org.apache.mina.common.BaseSessionManager |
|---|
exceptionMonitor |
| Constructor Summary | |
|---|---|
SocketConnector()
Creates a new instance. |
|
| Method Summary | |
|---|---|
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. |
| 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 SocketConnector()
| Method Detail |
|---|
public IoSession connect(java.net.SocketAddress address,
IoHandler handler)
throws java.io.IOException
IoConnectoraddress. If communication starts
successfully, events are fired to the specified
handler. This method blocks.
connect in interface IoConnectorjava.io.IOException - if failed to connect
public IoSession connect(java.net.SocketAddress address,
java.net.SocketAddress localAddress,
IoHandler handler)
throws java.io.IOException
IoConnectoraddress. If communication starts
successfully, events are fired to the specified
handler. This method blocks.
connect in interface IoConnectorlocalAddress - the local address the channel is bound to
java.io.IOException - if failed to connect
public IoSession connect(java.net.SocketAddress address,
int timeout,
IoHandler handler)
throws java.io.IOException
IoConnectoraddress with timeout. If
communication starts successfully, events are fired to the specified
handler. This method blocks.
connect in interface IoConnectorjava.io.IOException - if failed to connect
public IoSession connect(java.net.SocketAddress address,
java.net.SocketAddress localAddress,
int timeout,
IoHandler handler)
throws java.io.IOException
IoConnectoraddress with timeout. If
communication starts successfully, events are fired to the specified
handler. This method blocks.
connect in interface IoConnectorlocalAddress - the local address the channel is bound to
java.io.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 | ||||||||