Перейти к содержимому

Comfy epoll in c

Pedro Bento

0:00 / 0:00

Comfy epoll in c

175 просмотров · 4 дня назад
Pedro Bento
52 подписчика
175 просмотров · 4 дня назад
epoll() stdin Tutorial: https://suchprogramming.com/epoll-in-... Core loop based on: https://github.com/hnakamur/luajit-ex... 00:00 - Networking Kickoff: Architecture & Epoll Research 05:16 - Refactoring Build Scripts for a Dedicated Server Binary 08:34 - Epoll Basics: epoll_create1 and File Descriptor Lifecycle 11:52 - Polling Standard Input with Edge Cases & Event Loops 25:25 - Testing Epoll with Stdin & Multi-Chunk Buffer Reads 30:48 - Finding Real-World TCP Networking References 32:26 - Writing create_and_bind with getaddrinfo 46:09 - Setting Sockets to Non-Blocking via fcntl 49:55 - Binding Sockets to Epoll & Edge-Triggered Polling 56:07 - Accepting Inbound TCP Connections in Non-Blocking Mode 1:09:05 - Reading Inbound Sockets & Handling EAGAIN / EWOULDBLOCK 1:17:48 - The Power Outage Intermission (DNS Crashes & Farm Harvest) 1:21:13 - Fixing Critical Logic Bugs in the Epoll Event Loop 1:24:55 - Preventing Bind Crashes on Server Restart (SO_REUSEADDR) 1:28:16 - Cleaning Up Wayland Warnings with -Werror -Wextra 1:35:43 - Testing Live Connections with Netcat (Debugging Descriptor FDs) 1:46:55 - Stress Testing Concurrent Multi-Client Sockets 1:48:38 - Deep Dive: SOMAXCONN Backlog vs. Concurrent Active Limits 1:50:17 - Robust Cleanups: Edge-Triggered Write Buffering & Epoll Teardown 1:54:11 - Wrap-Up & Next Up: Building the Client-Side Network Loop Do not forget to like and subscribe!