com.maverick.sshd.tunnel
Interface ForwardingManager

All Known Implementing Classes:
DefaultForwardingManager, VTunForwardingManager

public interface ForwardingManager


Method Summary
 RemoteForwardingInterface createRemoteForwardingInterface()
          Create the interface to handle the remote forwarding requests.
 RemoteForwardingInterface[] getListeningPorts()
           
 RemoteForwardingInterface[] getListeningPorts(Connection connection)
           
 RemoteForwardingInterface getRemoteInterface(int port)
           
 boolean isListening(int port)
          Is there an existing forwarding listening on a particular port?
 void openLocalForwarding(ForwardingChannel channel)
           
 boolean startRemoteForwarding(String addressToBind, int portToBind, ConnectionProtocol connection)
          Start remote forwarding.
 boolean stopRemoteForwarding(String addressToBind, int portToBind, boolean dropActiveTunnels, ConnectionProtocol connection)
          Stop remote forwarding.
 

Method Detail

isListening

boolean isListening(int port)
Is there an existing forwarding listening on a particular port?

Parameters:
port - int
Returns:
boolean

startRemoteForwarding

boolean startRemoteForwarding(String addressToBind,
                              int portToBind,
                              ConnectionProtocol connection)
Start remote forwarding.

Parameters:
addressToBind - String
portToBind - int
connection - ConnectionProtocol
Returns:
boolean

stopRemoteForwarding

boolean stopRemoteForwarding(String addressToBind,
                             int portToBind,
                             boolean dropActiveTunnels,
                             ConnectionProtocol connection)
Stop remote forwarding.

Parameters:
addressToBind - String
portToBind - int
dropActiveTunnels - boolean
connection - ConnectionProtocol
Returns:
boolean

createRemoteForwardingInterface

RemoteForwardingInterface createRemoteForwardingInterface()
Create the interface to handle the remote forwarding requests.

Returns:

openLocalForwarding

void openLocalForwarding(ForwardingChannel channel)
                         throws com.maverick.ssh.common.ChannelOpenException
Throws:
com.maverick.ssh.common.ChannelOpenException

getListeningPorts

RemoteForwardingInterface[] getListeningPorts(Connection connection)

getListeningPorts

RemoteForwardingInterface[] getListeningPorts()

getRemoteInterface

RemoteForwardingInterface getRemoteInterface(int port)


Copyright © 2012. All Rights Reserved.