Hi all.
I have troubles reading an input stream in a loop. The method read() doesn’t block event if I don’t write anything on the client’s OutputStream.
More precisely, the crazy loop starts once I have send only one time something, I mean that the read() method blocks one time before stopping.
code:
InputStream is = mySocket.gerInpuStream();
while(mySocket.isConnected){
is.read();
}
Am I doing something wrong?
Thanks