News for hackers. Stuff that matters.
Re:What developers should know about TCP by jstanley on Friday May 15, 2020 @03:28PM (#23196337)
You will never drop a single byte.

If you need some packet-oriented messaging, you could use something like http://jsonlines.org/ (i.e. JSON messages separated by newline characters), or https://github.com/protocolbuffers/protobuf if it's more performance-critical.

Re:What developers should know about TCP by timeinput on Friday May 15, 2020 @05:21PM (#23197589)
Protobuf 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.