com.sshtools.net
Interface ForwardingClientListener


public interface ForwardingClientListener

An event listener for receiving notification of forwarding events.

Author:
Lee David Painter

Field Summary
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
 
Method Summary
 void channelClosed(int type, java.lang.String key, SshTunnel tunnel)
          A forwarding channel has been closed.
 void channelFailure(int type, java.lang.String key, java.lang.String host, int port, boolean isConnected, java.lang.Throwable t)
          A forwarding channel failed to open.
 void channelOpened(int type, java.lang.String key, SshTunnel tunnel)
          A forwarding channel has been opened.
 void forwardingStarted(int type, java.lang.String key, java.lang.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, java.lang.String key, java.lang.String host, int port)
          The forwarding identifed by the key has been stopped.
 

Field Detail

LOCAL_FORWARDING

public static final int LOCAL_FORWARDING
Constant used to specify whether the event relates to a local forwarding

See Also:
Constant Field Values

REMOTE_FORWARDING

public static final int REMOTE_FORWARDING
Constant used to specify whether the event relates to a remote forwarding

See Also:
Constant Field Values

X11_FORWARDING

public static final int X11_FORWARDING
Constant used to specify whether the event relates to an X11 forwarding

See Also:
Constant Field Values
Method Detail

forwardingStarted

public void forwardingStarted(int type,
                              java.lang.String key,
                              java.lang.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.

Parameters:
type -
key -
host -
port -

forwardingStopped

public void forwardingStopped(int type,
                              java.lang.String key,
                              java.lang.String host,
                              int port)
The forwarding identifed by the key has been stopped.

Parameters:
type -
key -
host -
port -

channelFailure

public void channelFailure(int type,
                           java.lang.String key,
                           java.lang.String host,
                           int port,
                           boolean isConnected,
                           java.lang.Throwable t)
A forwarding channel failed to open.

Parameters:
type -
key -
host -
port -
isConnected -
t -

channelOpened

public void channelOpened(int type,
                          java.lang.String key,
                          SshTunnel tunnel)
A forwarding channel has been opened.

Parameters:
type -
key -
tunnel -

channelClosed

public void channelClosed(int type,
                          java.lang.String key,
                          SshTunnel tunnel)
A forwarding channel has been closed.

Parameters:
type -
key -
tunnel -


Copyright © 2003 3SP LTD. All Rights Reserved.