com.maverick.sshd
Interface RemoteForwardingFactory

All Known Implementing Classes:
RemoteForwardingFactoryImpl

public interface RemoteForwardingFactory

This interface defines the behaviour for remote forwarding requests. When an SSH client requests a remote forwarding we typically open a server socket, accept connections and open remote forwarding channels on the client.

Author:
Lee David Painter

Method Summary
 boolean belongsTo(ConnectionProtocol connection)
          Does this factory belong to the connection provided?
 void bindInterface(java.lang.String addressToBind, int portToBind, ConnectionProtocol connection)
          A client has requested that the server start listening and forward any subsequent connections to the client.
 void stopListening(boolean dropActiveTunnels)
          Stop listening on active interfaces.
 

Method Detail

bindInterface

void bindInterface(java.lang.String addressToBind,
                   int portToBind,
                   ConnectionProtocol connection)
                   throws java.io.IOException
A client has requested that the server start listening and forward any subsequent connections to the client.

Parameters:
addressToBind - String
portToBind - int
connection - ConnectionProtocol
Throws:
java.io.IOException

belongsTo

boolean belongsTo(ConnectionProtocol connection)
Does this factory belong to the connection provided?

Parameters:
connection - ConnectionProtocol
Returns:
boolean

stopListening

void stopListening(boolean dropActiveTunnels)
Stop listening on active interfaces.

Parameters:
dropActiveTunnels - boolean


Copyright © 2003-2008 SSHTools LTD. All Rights Reserved.