Package org.apache.sshd.common.io
Interface IoConnector
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.nio.channels.Channel
,java.io.Closeable
,Closeable
,IoService
,IoServiceEventListenerManager
- All Known Implementing Classes:
Nio2Connector
public interface IoConnector extends IoService
-
-
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(java.net.SocketAddress targetAddress, AttributeRepository context, java.net.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(java.net.SocketAddress targetAddress, AttributeRepository context, java.net.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
-
-