com.maverick.sshd.tunnel
Interface RemoteForwardingInterface

All Known Implementing Classes:
DefaultRemoteForwardingInterface, VTunRemoteForwardingInterface

public interface RemoteForwardingInterface

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(Connection connection)
          Does this factory belong to the connection provided?
 void bindInterface(String addressToBind, int portToBind, Connection connection)
          A client has requested that the server start listening and forward any subsequent connections to the client.
 String getBindAddress()
           
 Connection getConnection()
          Return the connection that this interface belongs to
 int getPort()
           
 void stopListening(boolean dropActiveTunnels)
          Stop listening on active interfaces.
 

Method Detail

getBindAddress

String getBindAddress()

getPort

int getPort()

bindInterface

void bindInterface(String addressToBind,
                   int portToBind,
                   Connection connection)
                   throws 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:
IOException

belongsTo

boolean belongsTo(Connection 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

getConnection

Connection getConnection()
Return the connection that this interface belongs to

Returns:


Copyright © 2012. All Rights Reserved.