|
KEEL 1.0.0
Minimal C11 HTTP client/server library built on epoll/kqueue/io_uring/poll
|
An in-flight async operation that suspends a connection. More...
#include <async.h>

Data Fields | |
| KlConn * | conn |
| uint64_t | deadline_ms |
| KlAsyncFn | on_resume |
| KlAsyncFn | on_deadline |
| KlAsyncFn | on_cancel |
| void * | user_data |
| struct KlAsyncOp * | next |
An in-flight async operation that suspends a connection.
Three separate callbacks because deadline semantics differ per operation:
| KlConn* KlAsyncOp::conn |
Suspended connection
| uint64_t KlAsyncOp::deadline_ms |
Absolute deadline (0 = no deadline)
| KlAsyncFn KlAsyncOp::on_resume |
Called by kl_async_complete
| KlAsyncFn KlAsyncOp::on_deadline |
Called when deadline_ms reached
| KlAsyncFn KlAsyncOp::on_cancel |
Called if connection dies while suspended
| void* KlAsyncOp::user_data |
Opaque (e.g. HlAsyncCtx*)
| struct KlAsyncOp* KlAsyncOp::next |
Active ops list (server-owned)