TCP Server in Zig - Part 1 - Single Threaded

from blog openmymind.net, | ↗ original
In this series we're going to look at building a TCP server in Zig. We're going to start with a simple single-threaded server so that we can focus on basics. In following parts, we'll make our server multi-threaded and then introduce polling (poll, epoll and kqueue). We begin with a little program that compiles and runs but doesn't do much: const...