Show HN: Vibe, a single-header C networking library for Linux
Single-header C library for TCP/IPC messaging on Linux - xtellect/vibe
Opening excerpt (first ~120 words) tap to expand
vibe A single-header C library for TCP and Unix-socket messaging on Linux. A background thread runs epoll; your thread polls a lock-free queue. Messages are length-prefixed; broadcasts are refcounted instead of copied. ~1600 LOC, no dependencies beyond libc and pthreads. Apache 2.0. Contents Quickstart How it works Wire protocol API reference Examples Threading rules Configuration Limits and non-goals License Quickstart #define VIBE_IMPLEMENTATION #include "vibe.h" Define VIBE_IMPLEMENTATION in exactly one translation unit, or compile with -DVIBE_IMPLEMENTATION. Compile with -pthread, GCC or Clang, on Linux.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at GitHub.