|
wired
libc-free QUIC/HTTP3 SDK in C for x86_64-linux
|
The MOQT drafts this SDK speaks, as one table: each row is a dense version id, its WebTransport subprotocol token (draft-ietf-moq-transport 3.1, "moqt-NN") and the capability bits that differ between drafts. More...
Go to the source code of this file.
Functions | |
| int | moqver_find (wired_span token) |
| Version id for a negotiated subprotocol token: the matching row, the draft-19 row for an empty token (no subprotocol negotiated), -1 for a token the table does not list. | |
| u32 | moqver_caps (int ver) |
| Capability bits (MOQVER_CAP_*) of version id ver (0..MOQVER_COUNT-1). | |
| usz | wired_moqt_wt_protocols (char *out, usz cap) |
| Writes the server's space-separated subprotocol list ("moqt-22 moqt-19
moqt-18", NUL-terminated) to out, for wired_srvrun_opt.wt_protocols. | |
The MOQT drafts this SDK speaks, as one table: each row is a dense version id, its WebTransport subprotocol token (draft-ietf-moq-transport 3.1, "moqt-NN") and the capability bits that differ between drafts.
Every per-draft decision reads a capability bit, never a draft number, and the server's subprotocol offer is generated from the same table so the two cannot drift apart.
Writes the server's space-separated subprotocol list ("moqt-22 moqt-19 moqt-18", NUL-terminated) to out, for wired_srvrun_opt.wt_protocols.
Returns its length without the NUL, 0 when cap is too small.