Skip to main content

Module ack

Module ack 

Source
Expand description

ACK (Acknowledgment) control packet — draft-sharabayko-srt-01 §3.2.4, Figure 13.

Three variants share the same header shape and differ only in how much of the CIF is present, distinguished by CIF length on the wire:

  • Full (28-byte CIF): all seven fields, sent every 10 ms.
  • Small (16-byte CIF): fields up to and including Available Buffer Size.
  • Light (4-byte CIF): only Last Acknowledged Packet Sequence Number.

Structs§

AckPacket
ACK control packet (§3.2.4, Figure 13). ack_number occupies the header Type-specific Information word (“the sequential number of the full acknowledgment packet starting from 1”); per §3.2.4 it “should be set to 0” for Small/Light ACKs, but is stored and round-tripped verbatim regardless of variant.

Enums§

AckCif
The ACK Control Information Field — its shape (Full/Small/Light) is selected by which fields are present on the wire (§3.2.4). Data-carrying ADT: see AckPacket for the label convention rationale.

Constants§

ACK_CIF_LEN_FULL
CIF length, in bytes, of a Full ACK (§3.2.4).
ACK_CIF_LEN_LIGHT
CIF length, in bytes, of a Light ACK (§3.2.4).
ACK_CIF_LEN_SMALL
CIF length, in bytes, of a Small ACK (§3.2.4).