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

#include <websocket_server.h>

Collaboration diagram for KlWsServerConn:
Collaboration graph
[legend]

Data Fields

KlWsServerConfigconfig
 
KlWsFrameParser frame
 
char * msg_buf
 
size_t msg_len
 
size_t msg_cap
 
int msg_opcode
 
uint32_t utf8_state
 
int close_sent
 
int close_received
 
uint16_t close_code
 
uint64_t close_deadline_ms
 
uint64_t next_ping_ms
 
KlConnconn
 
KlAllocatoralloc
 
KlDrain drain
 
int drain_enabled
 

Field Documentation

◆ config

KlWsServerConfig* KlWsServerConn::config

Points to route's config (not owned)

◆ frame

KlWsFrameParser KlWsServerConn::frame

Incremental frame parser

◆ msg_buf

char* KlWsServerConn::msg_buf

Reassembly buffer (allocated)

◆ msg_len

size_t KlWsServerConn::msg_len

Current message length

◆ msg_cap

size_t KlWsServerConn::msg_cap

Message buffer capacity

◆ msg_opcode

int KlWsServerConn::msg_opcode

Opcode of first fragment

◆ utf8_state

uint32_t KlWsServerConn::utf8_state

Incremental UTF-8 validator state

◆ close_sent

int KlWsServerConn::close_sent

Close frame sent flag

◆ close_received

int KlWsServerConn::close_received

Close frame received flag

◆ close_code

uint16_t KlWsServerConn::close_code

Close status code

◆ close_deadline_ms

uint64_t KlWsServerConn::close_deadline_ms

Close handshake timeout deadline

◆ next_ping_ms

uint64_t KlWsServerConn::next_ping_ms

0 = auto-ping disabled

◆ conn

KlConn* KlWsServerConn::conn

Back-pointer for send functions

◆ alloc

KlAllocator* KlWsServerConn::alloc

Allocator for message buffer

◆ drain

KlDrain KlWsServerConn::drain

Backpressure write buffer (opt-in)

◆ drain_enabled

int KlWsServerConn::drain_enabled

0 = off (default), 1 = on


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