Expand description
DCS wire-format constants.
Every magic byte and every duration here is annotated with the exact line in the GPL reference implementation it was derived from.
Constantsยง
- CONNECT_
ACK_ TAG - ACK tag at
[10..13]of a 14-byte connect reply, followed by0x00at byte[13]. - CONNECT_
NAK_ TAG - NAK tag at
[10..13]of a 14-byte connect reply, followed by0x00at byte[13]. - CONNECT_
REPLY_ LEN - Connect reply (ACK/NAK) length (14 bytes).
- DEFAULT_
PORT - Default UDP port for
DCSreflectors. - DISCONNECT_
TIMEOUT - Disconnect ACK timeout โ give up waiting for unlink reply.
- KEEPALIVE_
INACTIVITY_ TIMEOUT DCSkeepalive inactivity timeout.- KEEPALIVE_
INTERVAL DCSkeepalive interval.- LINK_
HTML_ DONGLE - DCS HTML template banner for DONGLE gateway type.
- LINK_
HTML_ HOTSPOT - DCS HTML template banner for HOTSPOT gateway type.
- LINK_
HTML_ REPEATER - DCS HTML template for REPEATER gateway type (fills bytes
[19..519]of the LINK packet). - LINK_
HTML_ STARNET - DCS HTML template banner for STARNET gateway type.
- LINK_
LEN - LINK packet length (519 bytes โ includes 500-byte HTML template).
- POLL_
LEN - Poll packet length (17 bytes, both directions in this codec).
- UNLINK_
LEN - UNLINK packet length (19 bytes).
- VOICE_
EOT_ MARKER - End-of-stream sentinel bytes at
[55..58]of an EOT voice frame. - VOICE_
INACTIVITY_ TIMEOUT DCSvoice inactivity timeout โ synthesizeVoiceEndafter this.- VOICE_
LEN - Voice frame length (100 bytes).
- VOICE_
MAGIC "0001"magic at offsets[0..4]of everyDCSvoice frame.