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, Linux and Rust logos.
Networking

Write a Simple HTTP/1.1 Server in C

Build a small HTTP/1.1 server in C with POSIX sockets: parse the request line, send correct headers and Content-Length, and handle keep-alive and bad requests.

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

Parse Ethernet, IP and TCP Headers in C

Read raw frames with an AF_PACKET socket and parse Ethernet, IPv4 and TCP headers in C using the Linux header structs, with length checks at every layer.

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

Level-Triggered vs Edge-Triggered epoll

Compare epoll level-triggered and edge-triggered modes with EPOLLET, see exactly when each reports readiness, and pick the right one for your server.

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

Build an epoll Event Loop in C Step by Step

Write a single-threaded TCP echo server on Linux with epoll_create1, epoll_ctl and epoll_wait, using non-blocking sockets and a clean accept and read loop.

8 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.