com.maverick.sshd.vtun
Class VTunRemoteForwardingInterface

java.lang.Object
  extended by com.maverick.sshd.vtun.VTunRemoteForwardingInterface
All Implemented Interfaces:
RemoteForwardingInterface

public class VTunRemoteForwardingInterface
extends Object
implements RemoteForwardingInterface


Constructor Summary
VTunRemoteForwardingInterface()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VTunRemoteForwardingInterface

public VTunRemoteForwardingInterface()
Method Detail

bindInterface

public void bindInterface(String addressToBind,
                          int portToBind,
                          Connection connection)
                   throws IOException
Description copied from interface: RemoteForwardingInterface
A client has requested that the server start listening and forward any subsequent connections to the client.

Specified by:
bindInterface in interface RemoteForwardingInterface
Parameters:
addressToBind - String
portToBind - int
connection - ConnectionProtocol
Throws:
IOException

belongsTo

public boolean belongsTo(Connection connection)
Description copied from interface: RemoteForwardingInterface
Does this factory belong to the connection provided?

Specified by:
belongsTo in interface RemoteForwardingInterface
Parameters:
connection - ConnectionProtocol
Returns:
boolean

stopListening

public void stopListening(boolean dropActiveTunnels)
Description copied from interface: RemoteForwardingInterface
Stop listening on active interfaces.

Specified by:
stopListening in interface RemoteForwardingInterface
Parameters:
dropActiveTunnels - boolean

getConnection

public Connection getConnection()
Description copied from interface: RemoteForwardingInterface
Return the connection that this interface belongs to

Specified by:
getConnection in interface RemoteForwardingInterface
Returns:

getBindAddress

public String getBindAddress()
Specified by:
getBindAddress in interface RemoteForwardingInterface

getPort

public int getPort()
Specified by:
getPort in interface RemoteForwardingInterface


Copyright © 2012. All Rights Reserved.