4#include <unordered_map>
49#if defined(__APPLE__) || defined(__FreeBSD__)
59#include "promises.hpp"
62#include "sockutils.hpp"
64#include "resolver.hpp"
67int pipe(
int pipes[2]);
68int socketpair(
int domain,
int type,
int protocol, SOCKET socks[2]);
69int socketpair(
int domain,
int type,
int protocol,
int socks[2]);
73#if defined(__APPLE__) || defined(__FreeBSD__)
75#elif defined(__linux__)
76using TDefaultPoller =
TEPoll;
78using TDefaultPoller =
TIOCp;
80using TDefaultPoller =
TPoll;
Linux-specific poller implementation using epoll.
Definition epoll.hpp:40
IOCP-based poller for asynchronous I/O on Windows.
Definition iocp.hpp:101
Poller implementation using kqueue (for macOS and FreeBSD).
Definition kqueue.hpp:36
Poller implementation based on the poll() system call.
Definition poll.hpp:39
Implementation of a promise/future system for coroutines.