KEEL 1.0.0
Minimal C11 HTTP client/server library built on epoll/kqueue/io_uring/poll
Loading...
Searching...
No Matches
Data Fields
KlServer Struct Reference

#include <server.h>

Collaboration diagram for KlServer:
Collaboration graph
[legend]

Data Fields

KlConfig config
 
KlAllocator alloc_storage
 
KlTlsConfig tls_storage
 
KlH2ServerConfig h2_storage
 
KlCompressConfig compress_storage
 
KlRouter router
 
KlConnPool pool
 
KlEventCtx ev
 
int listen_fd
 
int bound_port
 
int listen_paused
 
_Atomic int running
 
_Atomic int draining
 
uint64_t drain_deadline_ms
 
KlAsyncOpasync_ops
 
KlFileIOfile_io
 
KlError last_error
 

Field Documentation

◆ config

KlConfig KlServer::config

◆ alloc_storage

KlAllocator KlServer::alloc_storage

owned copy if user didn't provide one

◆ tls_storage

KlTlsConfig KlServer::tls_storage

owned copy of TLS config (if provided)

◆ h2_storage

KlH2ServerConfig KlServer::h2_storage

owned copy of H2 config (if provided)

◆ compress_storage

KlCompressConfig KlServer::compress_storage

owned copy of compress config (if provided)

◆ router

KlRouter KlServer::router

Route table

◆ pool

KlConnPool KlServer::pool

Connection pool

◆ ev

KlEventCtx KlServer::ev

event loop + watcher list

◆ listen_fd

int KlServer::listen_fd

Listening socket fd

◆ bound_port

int KlServer::bound_port

actual port after bind (useful with port=0)

◆ listen_paused

int KlServer::listen_paused

1 = listen fd removed from event loop (pool full)

◆ running

_Atomic int KlServer::running

Server is running

◆ draining

_Atomic int KlServer::draining

Graceful shutdown in progress

◆ drain_deadline_ms

uint64_t KlServer::drain_deadline_ms

Drain timeout deadline

◆ async_ops

KlAsyncOp* KlServer::async_ops

active async ops list

◆ file_io

KlFileIO* KlServer::file_io

async file I/O (auto-created if backend supports it)

◆ last_error

KlError KlServer::last_error

diagnostic: set at point of return -1


The documentation for this struct was generated from the following file: