i'm using the CArchive object in an application that is using internet, and is communicating through some CArchive objects (see the NDK2.0 class)...
the problem is that when i receive the CArchive, i must know the size of the data within it, because if i try to read a data buffer that is larger than the data available, the program remains somewhere in the sockcore.cpp (or something like this), waiting for some data...i guess that it is waiting for the rest of the data, but that data never arrives, because it wasn't sent....
a solution i guess that will be to read the archive byte by byte but that seems quite crazy...

so, i'm waiting and hoping for some answers...

thank you