[Solved] TCP: Socket send/recv order [closed]
I’m guessing you use TCP? Then you have to remember that TCP is a streaming protocol, without message boundaries and without any start or end (except connection established and closed). A single recv call may receive less or more than what was sent in a single send call. You need to come up with a … Read more