KEEL 1.0.0
Minimal C11 HTTP client/server library built on epoll/kqueue/io_uring/poll
Loading...
Searching...
No Matches
Data Structures | Typedefs
resolver.h File Reference
#include <keel/allocator.h>
#include <sys/socket.h>
Include dependency graph for resolver.h:
This graph shows which files directly or indirectly include this file:

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 Documentation

◆ KlEventCtx

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.

◆ KlResolver

typedef struct KlResolver KlResolver

◆ KlResolveReq

typedef struct KlResolveReq KlResolveReq

◆ KlResolveDoneFn

typedef void(* KlResolveDoneFn) (KlResolveReq *req, const KlResolveResult *result, int error, void *user_data)

Completion callback — called on the event loop thread.