Creates a new LocalStreamForwarder. A
LocalStreamForwarder manages an Input/Outputstream pair that is being forwarded via the secure tunnel into a TCP/IP connection to another host (which may or may not be identical to the remote SSH-2 server).
- A LocalStreamForwarder object.
Definition at line 825 of file Connection.java.
if (tm == null)
throw new IllegalStateException("Cannot forward, you need to establish a connection first.");
throw new IllegalStateException("Cannot forward, connection is not authenticated.");
return new LocalStreamForwarder(cm, host_to_connect, port_to_connect);