wired
libc-free QUIC/HTTP3 SDK in C for x86_64-linux
Loading...
Searching...
No Matches
collect.h
Go to the documentation of this file.
1#ifndef CRECV_COLLECT_H
2#define CRECV_COLLECT_H
3
5
11
13#define CRECV_BUF 2048
14
21
25
33int crecv_collect(crecv* s, const u8* frames, usz len);
34
35#endif
void crecv_init(crecv *s)
Start with an empty reassembly buffer.
#define CRECV_BUF
Reassembly buffer capacity in bytes.
Definition collect.h:13
int crecv_collect(crecv *s, const u8 *frames, usz len)
Walk a payload, write every CRYPTO frame at its offset, ignore other frames.
CRYPTO stream reassembly state.
Definition collect.h:16
u8 buf[CRECV_BUF]
reassembled CRYPTO stream bytes
Definition collect.h:17
u8 filled[CRECV_BUF]
1 where a byte has been written
Definition collect.h:18
usz received_to
contiguous bytes available from offset 0
Definition collect.h:19
Linux direct syscalls.
u64 usz
unsigned size (size_t equivalent)
Definition types.h:20
unsigned char u8
unsigned 8-bit integer / byte
Definition types.h:18