Skip to content
systemcoding.dev

Library

Everything you need to level up your coding skills.

Flat illustration of network packets crossing between two hosts, with the C, Wireshark and Linux logos.
Networking

Handle Multiple Clients with select

Build a single-threaded C echo server that serves many clients with select, fd_set, FD_SET and FD_ISSET, and learn why you rebuild the set on every loop.

7 min read
Flat illustration of two options weighed side by side, with the C, Linux and Rust logos.
Networking

Blocking vs Non-Blocking I/O Explained

Learn what blocking and non-blocking I/O mean for sockets on POSIX, what EAGAIN tells you, and why servers with many clients switch to non-blocking mode.

6 min read
Flat illustration of network packets crossing between two hosts, with the C, Rust and Linux logos.
Networking

Resolve Hostnames in C with getaddrinfo

Resolve hostnames in C with getaddrinfo, walk the result list, connect to the first address that works, and free it with freeaddrinfo on Linux.

6 min read
Flat illustration of network packets crossing between two hosts, with the C, Linux and Rust logos.
Networking

Write a TCP Client in C with connect

Write a TCP client in C that calls socket and connect, sends a request, reads the reply until the server closes, and handles errors on Linux.

7 min read

Get new posts by email

We send one email when a new post is published. No spam.

Unsubscribe in one click. No spam, ever.