tcp粘包包头为什么定义4字节存储消息体长度

jiangyd · · 1384 次点击
![屏幕截图_1.png](https://static.studygolang.com/190906/c7c1edb66324540dc4410c90232152b7.png) [https://www.toutiao.com/i6732988204787433991/](https://www.toutiao.com/i6732988204787433991/)
#4
更多评论
czyt
云在青天水在瓶
不必纠结几个字节,5个字节也是可以的。一般是做包头+len+data+crc 希望对您有帮助
#1