WeSearch

Show HN: Vibe, a single-header C networking library for Linux

·7 min read · 0 reactions · 0 comments · 5 views
Show HN: Vibe, a single-header C networking library for Linux

Single-header C library for TCP/IPC messaging on Linux - xtellect/vibe

Original article
GitHub
Read full at GitHub →
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.

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from GitHub