Writing data |
To send data via the SSH tunnel you must first obtain the java.io.OutputStream associated with the tunnel. You can do this using the IpClientSsh#getOutputStream method. Once you have obtained the OutputStream you can write data as you would to any other OutputStream.
Example
// get output stream for tunnel OutputStream out = tunnel.getOutputStream();
// write data to output stream out.write(buffer); |