Sending Messages in a TCP Stream

前端 未结 5 1318
予麋鹿
予麋鹿 2021-01-19 07:36

TCP is stream-based, which means you send bytes without them necessarily being in a \"message\", so the receiver may get half a message or one and two thirds of messages.

5条回答
  •  一整个雨季
    2021-01-19 08:15

    Protocol Buffers, is less known that XMPP but may be of some interest in your case.

    http://code.google.com/intl/en-US/apis/protocolbuffers/docs/overview.html

提交回复
热议问题