1#ifndef WIRED_SRVLOOP_SEND_H
2#define WIRED_SRVLOOP_SEND_H
int wired_srvloop_send_handshake(const wired_server *s, const wired_srvloop_send_in *in, wired_obuf *out)
Seal a Handshake TLS flight under SERVER_HS.
int wired_srvloop_send_initial_ver(u32 version, const wired_server *s, const wired_srvloop_send_in *in, wired_obuf *out)
Same as wired_srvloop_send_initial, but the Initial keys, the header's Version field,...
int wired_srvloop_send_onertt(wired_server *s, const wired_srvloop_send_in *in, wired_obuf *out)
Seal a raw 1-RTT payload (for example HANDSHAKE_DONE) under SERVER_AP.
int wired_srvloop_send_initial(const wired_server *s, const wired_srvloop_send_in *in, wired_obuf *out)
Seal a ServerHello TLS flight into a server Initial packet, addressed to in->cli_scid (RFC 9000 7....
RFC 9001 4 / 4.1.2, RFC 8446 4 / 4.4.4, RFC 9000 7: server-side handshake orchestrator,...
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
Server-side handshake orchestrator state, initialized by wired_server_init.
Definition server.h:46
Read-only view of a byte range.
Definition span.h:30
Remaining arguments of wired_srvloop_send_initial/send_handshake/send_onertt beyond s and out: the co...
Definition send.h:21
wired_span cli_scid
reply DCID: the client's SCID (RFC 9000 7.2)
Definition send.h:22
i64 ack_pn
client packet to acknowledge, < 0 for none
Definition send.h:24
u64 ect0
RFC 9000 13.4.1: cumulative ECN counts for the trailing ACK (all zero = plain ACK).
Definition send.h:36
u64 ce
Cumulative count of CE-marked datagrams (see ect0).
Definition send.h:40
wired_span payload
TLS flight (Initial/Handshake) or raw 1-RTT bytes.
Definition send.h:25
u64 crypto_off
CRYPTO stream offset of payload's first byte (RFC 9000 19.6): 0 for an unsplit flight,...
Definition send.h:26
u64 pn
the packet number to seal with
Definition send.h:23
u64 ect1
Cumulative count of ECT(1)-marked datagrams (see ect0).
Definition send.h:38
unsigned int u32
unsigned 32-bit integer
Definition types.h:15
long i64
signed 64-bit integer
Definition types.h:14
unsigned long u64
unsigned 64-bit integer
Definition types.h:13