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 |
---|---|
boolean |
acceptLocalForwarding(SocketAddress remoteAddress,
String host,
int port)
Accept a remote forwarding based on the remote socket address?
|
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.
|
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
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
- void channelClosed(int type, String key, SshTunnel tunnel)
type
- key
- tunnel
- boolean acceptLocalForwarding(SocketAddress remoteAddress, String host, int port)
remoteAddress
- host
- port
- Copyright © 2014. All rights reserved.