Reading data

Top  Previous  Next

To receive data via the SSH tunnel you must first obtain the java.io.InputStream associated with the tunnel. You can do this using the IpClientSsh#getInputStream method.

 

Example

 

// get input stream for tunnel

InputStream in = tunnel.getInputStream();

 

// read data from input stream

int b = 0;

while((b = in.read()) != -1) {

// do something with data

}

 





Home | Company | Products | Solutions | Purchase | Support | Services | Blog

© 2021 JSCAPE LLC