Broken TCP messages

前端 未结 3 1775

I have a simple TCP server that communicates with some devices via GPRS. It works correctly without any problem for a long time. Nowdays there is a change in the devices (cl

3条回答
  •  暖寄归人
    2020-11-30 16:20

    You need message framing. The protocol must specify how large the messages are - usually either a constant well-known size, a length prefix, or using message delimiters.

提交回复
热议问题