I\'m writing a simple client/server network application that sends and receives fixed size messages through a TCP socket.
So far, I\'ve been using the <
a simple for one-liner will do the trick
int toread = 60; byte[] buff; for(int index=0;index
but most of the time the only reason less bytes would be read is when the stream ends or the bytes haven't all been flushed on the other side