From what i ve read around about winsock, recv has a tendency to not receive all the data from a sender in a single call. When people say this do they mean, for example, i send 300 bytes from a client and i call recv on the server, it s possible that it could only receive 200 some bytes on it s first call and the buffer will be filled with those 200 bytes? What happens to the last 100 bytes?
此外,我还要说,缓冲太小,例如512个 by或东西,客户寄出600个。 第一次休庭会将缓冲带填充能力,然后又被tes掉最后88条? 如果再次用不同的缓冲,那么这一缓冲的首批88次是数据的其他部分?
and thirdly, if one and two are true, and i receive a whole packet of data in separate buffers, will i have to splice them together into one buffer to start parsing my data out of it?