ch.ethz.ssh2
Class LocalPortForwarder
java.lang.Object
ch.ethz.ssh2.LocalPortForwarder
- public class LocalPortForwarder
- extends java.lang.Object
A LocalPortForwarder
forwards TCP/IP connections to a local
port via the secure tunnel to another host (which may or may not be identical
to the remote SSH-2 server).
- Version:
- $Id: LocalPortForwarder.java,v 1.5 2006/02/14 19:43:16 cplattne Exp $
- Author:
- Christian Plattner, plattner@inf.ethz.ch
Method Summary |
void |
close()
Stop TCP/IP forwarding of newly arriving connections. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cm
ChannelManager cm
local_port
int local_port
host_to_connect
java.lang.String host_to_connect
port_to_connect
int port_to_connect
lat
LocalAcceptThread lat
LocalPortForwarder
LocalPortForwarder(ChannelManager cm,
int local_port,
java.lang.String host_to_connect,
int port_to_connect)
throws java.io.IOException
close
public void close()
throws java.io.IOException
- Stop TCP/IP forwarding of newly arriving connections.
- Throws:
java.io.IOException