TCP Server in Zig - Part 2 - Message Boundaries

from blog openmymind.net, | ↗ original
This part isn't Zig-specific. If you're familiar with length-prefixed messages and binary encoding vs text encoding, you can probably skip it. When thinking about communication between systems using TCP, we generally think about it in terms of messages: an HTTP response, a database record, etc. The implementation though comes down to writing and...