public class VTunRemoteForwardingInterface extends Object implements RemoteForwardingInterface
| Constructor and Description |
|---|
VTunRemoteForwardingInterface() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public void bindInterface(String addressToBind, int portToBind, Connection connection) throws IOException
RemoteForwardingInterfacebindInterface in interface RemoteForwardingInterfaceaddressToBind - StringportToBind - intconnection - ConnectionProtocolIOExceptionpublic boolean belongsTo(Connection connection)
RemoteForwardingInterfacebelongsTo in interface RemoteForwardingInterfaceconnection - ConnectionProtocolpublic void stopListening(boolean dropActiveTunnels)
RemoteForwardingInterfacestopListening in interface RemoteForwardingInterfacedropActiveTunnels - booleanpublic Connection getConnection()
RemoteForwardingInterfacegetConnection in interface RemoteForwardingInterfacepublic String getBindAddress()
getBindAddress in interface RemoteForwardingInterfacepublic int getPort()
getPort in interface RemoteForwardingInterfaceCopyright © 2012. All Rights Reserved.