3 ms·
You will never drop a single byte. If you need some packet-oriented messaging, you could use something like http://jsonlines.org/ http://jsonlines.org/ (i.e. J
by jstanley 6y ago
You will never drop a single byte.
If you need some packet-oriented messaging, you could use something like http://jsonlines.org/ http://jsonlines.org/ (i.e. JSON messages separated by newline characters), or https://github.com/protocolbuffers/protobuf https://github.com/protocolbuffers/protobuf if it's more performance-critical.
- timeinput 6y agoProtobuf isn't self delimiting so you still have to have some extra packet wrapper around it to say the length. I like zeromq to get to a packet based system.