If say I have a byte array size 1024 My cache size is 250
If every time send 200 data, send 5 times Don't say the second sent there will be a little touch to the top of the first
If say I have a byte array size 1024 MB (particularly) My cache size is 250 m (special)
If every time to send 200 m data, send 5 times Will be sent when receiving the second is a little touch to the top of the first?
CodePudding user response:
Stick package cannot avoid completely, there are two kinds of treatment method of One is S written in the WEB project, C end to the HTTP interface, this case can avoid glue bag, don't need you to handle, by the WEB server to completely; Another is to define their own data structures, finally complete package, according to the data structure to parse the data, Such as the two messages are split into three packages: Figures 1 & lt; EN D> Count According to the 2 & lt; END> Received the first to throw the cache together, and then parse,