org.littleshoot.mina.common.support
Class BaseIoConnector
java.lang.Object
org.littleshoot.mina.common.support.BaseIoService
org.littleshoot.mina.common.support.BaseIoConnector
- All Implemented Interfaces:
- IoConnector, IoService
- Direct Known Subclasses:
- DatagramConnectorDelegate, SocketConnector, VmPipeConnector
public abstract class BaseIoConnector
- extends BaseIoService
- implements IoConnector
A base implementation of IoConnector.
- Version:
- $Rev: 555855 $, $Date: 2007-07-13 12:19:00 +0900 (Fri, 13 Jul 2007) $
- Author:
- The Apache Directory Project (mina-dev@directory.apache.org)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseIoConnector
protected BaseIoConnector()
connect
public ConnectFuture connect(SocketAddress address,
IoHandler handler)
- Description copied from interface:
IoConnector
- Connects to the specified
address. If communication starts
successfully, events are fired to the specified
handler.
- Specified by:
connect in interface IoConnector
- Returns:
ConnectFuture that will tell the result of the connection attempt
connect
public ConnectFuture connect(SocketAddress address,
SocketAddress localAddress,
IoHandler handler)
- Description copied from interface:
IoConnector
- Connects to the specified
address. If communication starts
successfully, events are fired to the specified
handler.
- Specified by:
connect in interface IoConnector
localAddress - the local address the channel is bound to
- Returns:
ConnectFuture that will tell the result of the connection attempt
Copyright © 2011 LittleShoot. All Rights Reserved.