1#ifndef WIRED_SRVTHREADS_SRVTHREADS_H
2#define WIRED_SRVTHREADS_SRVTHREADS_H
23#define WIRED_SRVTHREADS_MAX 16u
RFC 9000 17.2 / RFC 9001 5 / RFC 8446 4.4: cold-start a server connection from a client Initial datag...
The complete server event loop: the sanctioned socket-owning layer over the socket-free srvboot/srvlo...
#define WIRED_SRVTHREADS_MAX
Max worker threads this domain supports (fixed-size cores[] table).
Definition srvthreads.h:23
int wired_srvthreads_parse_cores(const char *s, wired_srvthreads_opt *opt)
Parse a comma-separated core list ("2,3,4,5") into opt->cores[] and opt->n_cores, e....
int wired_srvthreads_run(u16 port, wired_srvboot_id *id, wired_srvrun_handler h, wired_srvrun_obs obs, const wired_srvthreads_opt *opt)
Run N worker threads serving port/h until a graceful shutdown is requested (SIGTERM,...
AF_XDP driver integration for the HTTP/3 server: opens one AF_XDP socket plus its BPF redirect filter...
The fixed server identity a bootstrap needs: the X25519 handshake key pair, the ECDSA P-256 signing s...
Definition srvboot.h:23
The application's request responder: the callback and its opaque context, registered on the loop as a...
Definition srvrun.h:234
Optional debug-log file paths, each 0 to disable (the default): a qlog (RFC 9002-shaped packet_sent/p...
Definition srvrun.h:251
Opt-in polling-driver knobs, both off (0) by default so wired_server_run's behavior is unchanged.
Definition srvrun.h:306
Fan-out policy: per-worker CPU pinning, optional control-thread pinning, the srvrun knobs copied to e...
Definition srvthreads.h:28
int control_core
CPU to pin the control thread to; -1 = don't pin.
Definition srvthreads.h:31
const wired_srvxdp_cfg * xdp
0 = UDP + SO_REUSEPORT mode (every worker binds its own socket on port via wired_srvrun_serve_env's e...
Definition srvthreads.h:41
wired_srvrun_opt run
busy_poll etc., copied to every worker (no_signal_handlers is forced to 1 regardless of what is passe...
Definition srvthreads.h:32
int cores[WIRED_SRVTHREADS_MAX]
CPU index for worker i.
Definition srvthreads.h:29
int n_cores
number of workers, <= WIRED_SRVTHREADS_MAX
Definition srvthreads.h:30
Caller-supplied configuration for one AF_XDP-backed server socket.
Definition srvxdp.h:21
unsigned short u16
unsigned 16-bit integer
Definition types.h:17