I'm able to request the size for my purposes (f.e. FTP, POP3) but was wondering if it is really necessary.
I also tried other conditions, f.e. until the amount of read data is zero...but that does not only throw an exception, but does also kill my whole connection with the server. Which is not desirable if you're within a protocol session.
Code:
Loop While read > 0
I've also though of checking if read is smaller then the buffer, but there's the same problem as with DataAvalaible, that I'm faster with reading then the connection is with filling the buffer.
Thanks for replying and in advance,
Bobby