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.
|
finishAccept
public boolean belongsTo(ConnectionProtocol connection)
RemoteForwardingFactory
belongsTo
in interface RemoteForwardingFactory
connection
- ConnectionProtocolpublic int bindInterface(String addressToBind, int portToBind, ConnectionProtocol connection) throws IOException
RemoteForwardingFactory
bindInterface
in interface RemoteForwardingFactory
addressToBind
- StringportToBind
- intconnection
- ConnectionProtocolIOException
public int bindInterface(String addressToBind, int portToBind, ConnectionProtocol connection, String channelType) throws IOException
bindInterface
in interface RemoteForwardingFactory
IOException
public boolean finishAccept(SelectionKey key, ProtocolContext protocolContext)
ClientAcceptor
finishAccept
in class ClientAcceptor
key
- SelectionKeyprotocolContext
- ProtocolContextpublic void stopListening(boolean dropActiveTunnels)
RemoteForwardingFactory
stopListening
in interface RemoteForwardingFactory
dropActiveTunnels
- booleanpublic void stopAccepting()
ClientAcceptor
stopAccepting
in class ClientAcceptor
Copyright © 2024. All rights reserved.