rxi/dyad logo

rxi/dyad

Free

Asynchronous networking for C

FreeFree tier
Type
Open Source

About rxi/dyad

Dyad is a lightweight, portable asynchronous networking library written in C. It provides an event-driven API for building both servers and clients, handling connections and data transfer without blocking. The library is designed to be minimal and easy to integrate by simply dropping the dyad.c and dyad.h files into an existing project. It includes examples for an echo server and a daytime client, and is licensed under the MIT license. Note that this repository has been archived and is no longer actively maintained.

Key Features

Lightweight and portable design
Event-driven asynchronous networking API
Supports both server and client modes
Easy integration by dropping source files into existing projects
Includes echo server and daytime client examples
MIT licensed

Pros & Cons

Pros
  • Extremely lightweight with minimal dependencies
  • Portable across platforms (Windows requires linking ws2_32)
  • Simple and easy to use API with event callbacks
  • Permissive MIT license allows unrestricted use
Cons
  • Archived since May 2021, no longer actively maintained
  • Only provides basic TCP networking, no higher-level protocols
  • Limited documentation beyond API overview and examples
  • No official releases or versioning provided

Best For

Building small standalone network servers in CAdding non-blocking network support to existing C projectsEducational examples for learning asynchronous socket programming in C

FAQ

What is Dyad?
Dyad is an asynchronous networking library for C that is lightweight, portable, and easy to use. It can be used to create small standalone servers or to add network support to existing projects.
How do I install Dyad?
You can drop the dyad.c and dyad.h files into your project. On Windows, you also need to link to ws2_32. The library is self-contained with no additional dependencies.
Is Dyad still maintained?
No, the repository was archived by the owner on May 27, 2021, and is now read-only. It is no longer actively maintained.
What license does Dyad use?
Dyad is licensed under the MIT license, allowing free use, modification, and distribution.