|
KEEL 1.0.0
Minimal C11 HTTP client/server library built on epoll/kqueue/io_uring/poll
|


Go to the source code of this file.
Data Structures | |
| struct | KlResolveResult |
| Result passed to the completion callback. More... | |
| struct | KlResolveReq |
| Opaque per-request handle — resolver implementation allocates. More... | |
| struct | KlResolver |
| Async DNS resolver vtable. More... | |
Typedefs | |
| typedef struct KlEventCtx | KlEventCtx |
| typedef struct KlResolver | KlResolver |
| typedef struct KlResolveReq | KlResolveReq |
| typedef void(* | KlResolveDoneFn) (KlResolveReq *req, const KlResolveResult *result, int error, void *user_data) |
| Completion callback — called on the event loop thread. | |
| typedef struct KlEventCtx KlEventCtx |
resolver.h — Pluggable async DNS resolver vtable
When set in KlClientConfig, the async client uses this for non-blocking name resolution. When NULL, falls back to sync getaddrinfo (default).
Users can plug in c-ares, a thread-pool wrapper, or a custom implementation.
| typedef struct KlResolver KlResolver |
| typedef struct KlResolveReq KlResolveReq |
| typedef void(* KlResolveDoneFn) (KlResolveReq *req, const KlResolveResult *result, int error, void *user_data) |
Completion callback — called on the event loop thread.