Expand description
SRT control packet dispatch — draft-sharabayko-srt-01 §3.2, Figure 4,
Table 1.
word0 1| Control Type (15) | Subtype (16) |
word1 Type-specific Information (32)
word2 Timestamp (32)
word3 Destination Socket ID (32)
rest CIF (variable, per Control Type)Subtype is 0x0 for every Control Type in Table 1 except
User-Defined Type (0x7FFF), where it carries SRT_CMD_KMREQ /
SRT_CMD_KMRSP (Table 5) when the CIF is a Key Material message (§3.2.2).
Subtype and the Type-specific Information word (where a given packet
type does not use it) are validated as reserved-must-be-zero and are not
stored in the typed per-type structs — see the crate root’s reserved-bit
policy.
Structs§
- User
Defined Packet - A Control Type = User-Defined (
0x7FFF) packet, or a Control Type not defined by Table 1. The CIF is genuinely opaque here — the only defined use is the Key Material message (§3.2.2) viaSubtypeSRT_CMD_KMREQ/SRT_CMD_KMRSP— seeSelf::as_key_material.
Enums§
- Control
Packet - An SRT control packet (
draft-sharabayko-srt-01§3.2). - Control
Type - The
Control Typefield (draft-sharabayko-srt-01§3.2, Table 1) — 15 bits.
Constants§
- CONTROL_
TYPE_ ACK - ACK (§3.2.4).
- CONTROL_
TYPE_ ACKACK - ACKACK (§3.2.8).
- CONTROL_
TYPE_ CONGESTION_ WARNING - Congestion Warning (§3.2.6).
- CONTROL_
TYPE_ DROPREQ - Message Drop Request (§3.2.9).
- CONTROL_
TYPE_ HANDSHAKE Control Typewire values (draft-sharabayko-srt-01§3.2, Table 1).- CONTROL_
TYPE_ KEEPALIVE - Keep-Alive (§3.2.3).
- CONTROL_
TYPE_ NAK - NAK / Loss Report (§3.2.5).
- CONTROL_
TYPE_ PEERERROR - Peer Error (§3.2.10).
- CONTROL_
TYPE_ SHUTDOWN - Shutdown (§3.2.7).
- CONTROL_
TYPE_ USER_ DEFINED - User-Defined Type (reserved value; also carries the Key Material message
per §3.2.2 via
SubtypeSRT_CMD_KMREQ/SRT_CMD_KMRSP).