Package org.apache.sshd.common.io
Interface IoConnector
-
- All Superinterfaces:
AutoCloseable
,Channel
,Closeable
,Closeable
,IoService
,IoServiceEventListenerManager
- All Known Implementing Classes:
Nio2Connector
public interface IoConnector extends IoService
- Author:
- Apache MINA SSHD Project
-
-
Field Summary
-
Fields inherited from interface org.apache.sshd.common.io.IoService
DEFAULT_REUSE_ADDRESS
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IoConnectFuture
connect(SocketAddress targetAddress, AttributeRepository context, SocketAddress localAddress)
-
Methods inherited from interface org.apache.sshd.common.Closeable
addCloseFutureListener, close, close, isClosed, isClosing, isOpen, removeCloseFutureListener
-
Methods inherited from interface org.apache.sshd.common.io.IoService
getManagedSessions
-
Methods inherited from interface org.apache.sshd.common.io.IoServiceEventListenerManager
getIoServiceEventListener, setIoServiceEventListener
-
-
-
-
Method Detail
-
connect
IoConnectFuture connect(SocketAddress targetAddress, AttributeRepository context, SocketAddress localAddress)
- Parameters:
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 - ifnull
an automatic ephemeral port and bind address is used- Returns:
- The
future
representing the connection request
-
-