4#include <unordered_map>
46#if defined(__APPLE__) || defined(__FreeBSD__)
56#include "promises.hpp"
59#include "sockutils.hpp"
61#include "resolver.hpp"
64int pipe(
int pipes[2]);
65int socketpair(
int domain,
int type,
int protocol, SOCKET socks[2]);
66int socketpair(
int domain,
int type,
int protocol,
int socks[2]);
70#if defined(__APPLE__) || defined(__FreeBSD__)
72#elif defined(__linux__)
73using TDefaultPoller =
TEPoll;
75using TDefaultPoller =
TIOCp;
77using TDefaultPoller =
TPoll;
Linux-specific poller implementation using epoll.
Definition epoll.hpp:40
IOCP-based poller for asynchronous I/O on Windows.
Definition iocp.hpp:35
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.