Reading data |
After establishing a connection you may read data from the server by getting the java.io.InputStream associated with the connection. To get the input stream invoke the IpClientSsl#getInputStream method.
Example
// create new IpClientSsl instance IpClientSsl ssl = new IpClientSsl(hostname,port);
// establish a connection ssl.connect();
// get input stream InputStream in = ssl.getInputStream();
// read data from input stream int i = 0; while((i = in.read()) != -1) { // do something with data }
|