public interface ForwardingFactory<T extends SshContext>
Modifier and Type | Method and Description |
---|---|
boolean |
belongsTo(ConnectionProtocol<T> connection)
Does this factory belong to the connection provided?
|
int |
bindInterface(String addressToBind,
int portToBind,
ConnectionProtocol<?> connection,
String channelType) |
int |
bindInterface(String addressToBind,
int portToBind,
ConnectionProtocol<T> connection)
A client has requested that the server start listening and forward
any subsequent connections to the client.
|
String |
getChannelType()
Get the underlying channel type for this forwarding factory.
|
int |
getStartedEventCode() |
int |
getStoppedEventCode() |
void |
stopListening(boolean dropActiveTunnels)
Stop listening on active interfaces.
|
int bindInterface(String addressToBind, int portToBind, ConnectionProtocol<T> connection) throws IOException
addressToBind
- StringportToBind
- intconnection
- ConnectionProtocolIOException
int bindInterface(String addressToBind, int portToBind, ConnectionProtocol<?> connection, String channelType) throws IOException
addressToBind
- portToBind
- connection
- channelType
- IOException
boolean belongsTo(ConnectionProtocol<T> connection)
connection
- ConnectionProtocolvoid stopListening(boolean dropActiveTunnels)
dropActiveTunnels
- booleanString getChannelType()
int getStartedEventCode()
int getStoppedEventCode()
Copyright © 2016. All rights reserved.