Skip to content
This repository was archived by the owner on Mar 5, 2026. It is now read-only.

Latest commit

 

History

History
22 lines (14 loc) · 700 Bytes

File metadata and controls

22 lines (14 loc) · 700 Bytes

MOVED

This repository has moved to https://g.fc.run/cpp/asyncaddrinfo


asyncaddrinfo

Asynchronous version of getaddrinfo().

Features

  • Uses getaddrinfo() underneath, so is quirk-compatible
  • Configurable number of resolver threads
  • Signals completion via a single file descriptor
    • Compatible with select, poll, epoll, or blocking results
  • Simple API; splits getaddrinfo() into two functions, with a file descriptor in between
  • valgrind-friendly: closes all fds, frees all allocated memory

Use

See example.c