TCP is streaming in bytes, no boundary protection, problems stick package, then

I think a lot of people have this doubt.

Started by Vernon at December 04, 2016 - 5:30 PM

The definition of a Baotou, Baotou contains the content size. The first time receiving Baotou, according to the lMsgLength receiving content

unsigned short nFlag; //0xffff
unsigned short nMsgType;
unsigned long lMsgLength;

Posted by Amy at December 16, 2016 - 6:16 PM

The format of data packets must be defined, whether the packet is complete you can also CRC check

Posted by April at December 17, 2016 - 7:12 PM