Hmm weird the lenght is not in there at all. Wonder if the only way is to use non blocking sockets, then you just read until the buffer is empty. But even that would not make sense as sometimes packets are sent in several chunks, so how do you determine how to put these together (before decompressing).
|