e9f3f8ccf563775c459bbb11dd53a9db2504b122
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
Description
Languages
C
96.4%
Makefile
3.6%