public interface IoConnector extends IoService
DEFAULT_REUSE_ADDRESS
Modifier and Type | Method and Description |
---|---|
IoConnectFuture |
connect(java.net.SocketAddress targetAddress,
AttributeRepository context,
java.net.SocketAddress localAddress) |
getManagedSessions
addCloseFutureListener, close, close, close, getMaxCloseWaitTime, isClosed, isClosing, isOpen, removeCloseFutureListener
getIoServiceEventListener, setIoServiceEventListener
IoConnectFuture connect(java.net.SocketAddress targetAddress, AttributeRepository context, java.net.SocketAddress localAddress)
targetAddress
- The target address to connect tocontext
- An optional "context" to be attached to the established session if successfully
connectedlocalAddress
- The local address to use - if null
an automatic ephemeral port and bind address is
usedfuture
representing the connection request