wired
libc-free QUIC/HTTP3 SDK in C for x86_64-linux
Loading...
Searching...
No Matches
server_tp.h
1#ifndef QUIC_STP_SERVER_TP_H
2#define QUIC_STP_SERVER_TP_H
3
6
7/* RFC 9000 18.2. Build the server's transport parameters into out->p
8 * (out->cap bytes). original_dcid is the DCID of the client's first Initial
9 * (RFC 9000 7.3); initial_scid is the server's source connection id. On
10 * success writes the TLV sequence and sets out->len; returns 1. Returns 0 if
11 * it does not fit. */
16#define QUIC_STP_DEFAULT_MAX_STREAMS_BIDI 100
27
28int quic_stp_build_server(
29 quic_span original_dcid, quic_span initial_scid, quic_obuf* out);
30
31/* As quic_stp_build_server, with the tunable limits overriding defaults
32 * (lim = 0 keeps every default). */
33/* Same as quic_stp_build_server_lim plus retry_source_connection_id
34 * (RFC 9000 7.3): emitted only when rscid is non-empty (a Retry actually
35 * preceded the handshake -- the peer treats an unexpected one as a
36 * TRANSPORT_PARAMETER_ERROR). */
37int quic_stp_build_server_ret(
38 quic_span original_dcid,
39 quic_span initial_scid,
40 quic_span rscid,
41 const quic_stp_limits* lim,
42 quic_obuf* out);
43
44int quic_stp_build_server_lim(
45 quic_span original_dcid,
46 quic_span initial_scid,
47 const quic_stp_limits* lim,
48 quic_obuf* out);
49
50#endif
Value-type views that fold the SDK's recurring argument shapes into single parameters,...
Growing output buffer view for variable-length results.
Definition span.h:54
Read-only view of a byte range.
Definition span.h:30
RFC 9000 18.2: the operator-tunable integer limits this server advertises; a zero field falls back to...
Definition server_tp.h:19
u64 max_streams_bidi
initial_max_streams_bidi (0x08), default 100
Definition server_tp.h:21
u64 max_datagram_frame_size
max_datagram_frame_size (0x20, RFC 9221 3), 0 = not advertised (no built-in default: the caller opts ...
Definition server_tp.h:22
u64 max_data
initial_max_data (0x04), default 1MiB
Definition server_tp.h:20
x86_64 Linux direct syscalls.
unsigned long u64
unsigned 64-bit integer
Definition syscall.h:12