5 Struct N_H2_SERVER
gullradriel edited this page 2026-10-09 00:55:18 +02:00

N_H2_SERVER

server connection state More...

Public Attributes

Name
n_h2_srv_write_fn wr
write callback
H2_STREAM[128] streams
the stream table
int settings_acked
the peer acknowledged our SETTINGS
int64_t send_win_conn
our remaining connection send window
n_h2_srv_read_fn rd
read callback
H2BUF rb
the wire read buffer
size_t peer_max_frame
the peer's SETTINGS_MAX_FRAME_SIZE
int64_t peer_initial_win
the peer's SETTINGS_INITIAL_WINDOW_SIZE
size_t nrequests
requests delivered to the callback
uint32_t last_stream_id
the highest client stream id seen
int io_failed
a read or write callback failed
void * io
opaque I/O handle for the callbacks
uint32_t hblock_sid
the stream whose header block is in progress, 0 = none
int hblock_end_stream
END_STREAM of the HEADERS that opened the block.
H2BUF hblock
header-block fragment accumulator
int goaway_recv
the peer sent GOAWAY
const char * err
the reason the connection failed, or NULL
int eof
the peer closed the connection
N_H2_HPACK * dec
HPACK decoder for the client-to-server direction.

Detailed Description

struct N_H2_SERVER;

server connection state

opaque HTTP/2 server connection state (streams, windows, HPACK contexts)

Public Attributes Documentation

variable wr

n_h2_srv_write_fn wr;

write callback

variable streams

H2_STREAM[128] streams;

the stream table

variable settings_acked

int settings_acked;

the peer acknowledged our SETTINGS

variable send_win_conn

int64_t send_win_conn;

our remaining connection send window

variable rd

n_h2_srv_read_fn rd;

read callback

variable rb

H2BUF rb;

the wire read buffer

variable peer_max_frame

size_t peer_max_frame;

the peer's SETTINGS_MAX_FRAME_SIZE

variable peer_initial_win

int64_t peer_initial_win;

the peer's SETTINGS_INITIAL_WINDOW_SIZE

variable nrequests

size_t nrequests;

requests delivered to the callback

variable last_stream_id

uint32_t last_stream_id;

the highest client stream id seen

variable io_failed

int io_failed;

a read or write callback failed

variable io

void * io;

opaque I/O handle for the callbacks

variable hblock_sid

uint32_t hblock_sid;

the stream whose header block is in progress, 0 = none

variable hblock_end_stream

int hblock_end_stream;

END_STREAM of the HEADERS that opened the block.

variable hblock

H2BUF hblock;

header-block fragment accumulator

variable goaway_recv

int goaway_recv;

the peer sent GOAWAY

variable err

const char * err;

the reason the connection failed, or NULL

variable eof

int eof;

the peer closed the connection

variable dec

N_H2_HPACK * dec;

HPACK decoder for the client-to-server direction.