Receive only give me part of my data...
Posted on 2004-04-27
I have this Java server app that is sending data to my MFC (VC++6.0) app. The data is just over 3100 bytes long but for some reason i'm only getting 3000+ bytes and then I get another "OnReceive" message after i process this one.
Should I assume that this means that my data was split up into parts and WINSOCK is only giving me bits of it at a time?
Is there an easy way to make sure all the data is sent all at once in one BIG part instead of in chunks?
If it isn't possible to receive all of it at once, is there a way to read beyond the CSocket::Receive buffer? In other words, fake out an "OnReceive"?