wired
libc-free QUIC/HTTP3 SDK in C for x86_64-linux
Loading...
Searching...
No Matches
srvworkers.h
Go to the documentation of this file.
1#ifndef WIRED_SRVWORKERS_SRVWORKERS_H
2#define WIRED_SRVWORKERS_SRVWORKERS_H
3
6
38
49
52#define WIRED_SRVWORKERS_MAX 64
53
81 u16 port,
85 const wired_srvworkers_opt* opt);
86
87#endif
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...
int wired_srvworkers_run(u16 port, wired_srvboot_id *id, wired_srvrun_handler h, wired_srvrun_obs obs, const wired_srvworkers_opt *opt)
Fork opt->workers (or CPU count if opt->workers == 0) child processes.
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
Worker fan-out policy.
Definition srvworkers.h:40
int pin_cores
1 = pin worker i to CPU i, 0 = no pinning
Definition srvworkers.h:42
wired_srvrun_opt run
Base run options every forked child serves with (app callbacks, busy-poll knobs, force_retry ....
Definition srvworkers.h:47
int workers
0 = auto (wired_srvpin_cpu_count())
Definition srvworkers.h:41
unsigned short u16
unsigned 16-bit integer
Definition types.h:17