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

An in-flight async operation that suspends a connection. More...

#include <async.h>

Collaboration diagram for KlAsyncOp:
Collaboration graph
[legend]

Data Fields

KlConnconn
 
uint64_t deadline_ms
 
KlAsyncFn on_resume
 
KlAsyncFn on_deadline
 
KlAsyncFn on_cancel
 
void * user_data
 
struct KlAsyncOpnext
 

Detailed Description

An in-flight async operation that suspends a connection.

Three separate callbacks because deadline semantics differ per operation:

Field Documentation

◆ conn

KlConn* KlAsyncOp::conn

Suspended connection

◆ deadline_ms

uint64_t KlAsyncOp::deadline_ms

Absolute deadline (0 = no deadline)

◆ on_resume

KlAsyncFn KlAsyncOp::on_resume

Called by kl_async_complete

◆ on_deadline

KlAsyncFn KlAsyncOp::on_deadline

Called when deadline_ms reached

◆ on_cancel

KlAsyncFn KlAsyncOp::on_cancel

Called if connection dies while suspended

◆ user_data

void* KlAsyncOp::user_data

Opaque (e.g. HlAsyncCtx*)

◆ next

struct KlAsyncOp* KlAsyncOp::next

Active ops list (server-owned)


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