public class RemoteForwardingFactoryImpl extends ClientAcceptor implements RemoteForwardingFactory
| Constructor and Description |
|---|
RemoteForwardingFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
belongsTo(ConnectionProtocol connection)
Does this factory belong to the connection provided?
|
int |
bindInterface(String addressToBind,
int portToBind,
ConnectionProtocol connection)
A client has requested that the server start listening and forward
any subsequent connections to the client.
|
int |
bindInterface(String addressToBind,
int portToBind,
ConnectionProtocol connection,
String channelType) |
boolean |
finishAccept(SelectionKey key,
ProtocolContext protocolContext)
Complete the accept operation.
|
void |
stopAccepting()
Stop accepting clients
|
void |
stopListening(boolean dropActiveTunnels)
Stop listening on active interfaces.
|
finishAcceptpublic boolean belongsTo(ConnectionProtocol connection)
RemoteForwardingFactorybelongsTo in interface RemoteForwardingFactoryconnection - ConnectionProtocolpublic int bindInterface(String addressToBind, int portToBind, ConnectionProtocol connection) throws IOException
RemoteForwardingFactorybindInterface in interface RemoteForwardingFactoryaddressToBind - StringportToBind - intconnection - ConnectionProtocolIOExceptionpublic int bindInterface(String addressToBind, int portToBind, ConnectionProtocol connection, String channelType) throws IOException
bindInterface in interface RemoteForwardingFactoryIOExceptionpublic boolean finishAccept(SelectionKey key, ProtocolContext protocolContext)
ClientAcceptorfinishAccept in class ClientAcceptorkey - SelectionKeyprotocolContext - ProtocolContextpublic void stopListening(boolean dropActiveTunnels)
RemoteForwardingFactorystopListening in interface RemoteForwardingFactorydropActiveTunnels - booleanpublic void stopAccepting()
ClientAcceptorstopAccepting in class ClientAcceptorCopyright © 2025. All rights reserved.