| java.lang.Object ch.ethz.ssh2.LocalStreamForwarder
LocalStreamForwarder | public class LocalStreamForwarder (Code) | | A LocalStreamForwarder forwards an Input- and Outputstream
pair via the secure tunnel to another host (which may or may not be identical
to the remote SSH-2 server).
author: Christian Plattner, plattner@inf.ethz.ch version: $Id: LocalStreamForwarder.java,v 1.6 2006/02/14 19:43:16 cplattne Exp $ |
port_to_connect | int port_to_connect(Code) | | |
close | public void close() throws IOException(Code) | | Close the underlying SSH forwarding channel and free up resources.
You can also use this method to force the shutdown of the underlying
forwarding channel. Pending output (OutputStream not flushed) will NOT
be sent. Pending input (InputStream) can still be read. If the shutdown
operation is already in progress (initiated from either side), then this
call is a no-op.
throws: IOException - |
getOutputStream | public OutputStream getOutputStream() throws IOException(Code) | | Get the OutputStream. Please be aware that the implementation MAY use an
internal buffer. To make sure that the buffered data is sent over the
tunnel, you have to call the flush method of the
OutputStream . To signal EOF, please use the
close method of the OutputStream .
An OutputStream object. throws: IOException - |
|
|