I am sending a TCP message with 1074 bytes from my PC to the CC3000 and every once in a while I will see two 536 byte messages in the Wire Shark trace. My code does not handle this since I check the number of bytes receive from recv() and compare it to the message length which I have embedded in the first 2 bytes of the TCP data. I am trying to figure out how recv() works. If I execute recv() and get a length of 536 meaning only have of the message was received. If I go back a few ms later and execute recv() will I see 1074 bytes or will I see 536 again? It is hard to reproduce otherwise I would just test and figure it out.
Thanks, Kevin