Package org.apache.sshd.common.io
Interface IoConnector
- All Superinterfaces:
AutoCloseable
,Channel
,Closeable
,Closeable
,IoService
,IoServiceEventListenerManager
- All Known Implementing Classes:
Nio2Connector
-
Field Summary
Fields inherited from interface org.apache.sshd.common.io.IoService
DEFAULT_REUSE_ADDRESS
-
Method Summary
Modifier and TypeMethodDescriptionconnect
(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 Details
-
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
-