Partial receipt of packets from socket C++
问题 I have a trouble, my server application sends packet 8 bytes length - AABBCC1122334455 but my application receives this packet in two parts AABBCC1122 and 334455 , via "recv" function, how can i fix that? Thanks! 回答1: To sum up a liitle bit: TCP connection doesn't operate with packets or messages on the application level, you're dealing with stream of bytes . From this point of view it's similar to writing and reading from a file. Both send and recv can send and receive less data than