public interface ForwardingClientListener
Modifier and Type | Field and Description |
---|---|
static int |
LOCAL_FORWARDING
Constant used to specify whether the event relates to a local forwarding
|
static int |
REMOTE_FORWARDING
Constant used to specify whether the event relates to a remote forwarding
|
static int |
X11_FORWARDING
Constant used to specify whether the event relates to an X11 forwarding
|
Modifier and Type | Method and Description |
---|---|
void |
channelClosed(int type,
String key,
SshTunnel tunnel)
A forwarding channel has been closed.
|
void |
channelFailure(int type,
String key,
String host,
int port,
boolean isConnected,
Throwable t)
A forwarding channel failed to open.
|
void |
channelOpened(int type,
String key,
SshTunnel tunnel)
A forwarding channel has been opened.
|
boolean |
checkLocalSourceAddress(SocketAddress listeningAddress,
String addressBound,
int portBound,
String host,
int port)
Check the source address and optionally decline the local forwarding (return false).
|
void |
forwardingStarted(int type,
String key,
String host,
int port)
The forwarding has been started and any connections made to the listening
address (which is specified by the key in the format 'ipaddress:port') will
be forwarded over the connection to the host and port specified.
|
void |
forwardingStopped(int type,
String key,
String host,
int port)
The forwarding identifed by the key has been stopped.
|
static final int LOCAL_FORWARDING
static final int REMOTE_FORWARDING
static final int X11_FORWARDING
boolean checkLocalSourceAddress(SocketAddress listeningAddress, String addressBound, int portBound, String host, int port)
listeningAddress
- addressBound
- portBound
- host
- port
- void forwardingStarted(int type, String key, String host, int port)
type
- key
- host
- port
- void forwardingStopped(int type, String key, String host, int port)
type
- key
- host
- port
- void channelFailure(int type, String key, String host, int port, boolean isConnected, Throwable t)
type
- key
- host
- port
- isConnected
- t
- void channelOpened(int type, String key, SshTunnel tunnel)
type
- key
- tunnel
- Copyright © 2024. All rights reserved.