Module consts

Module consts 

Source
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 by 0x00 at byte [13].
CONNECT_NAK_TAG
NAK tag at [10..13] of a 14-byte connect reply, followed by 0x00 at byte [13].
CONNECT_REPLY_LEN
Connect reply (ACK/NAK) length (14 bytes).
DEFAULT_PORT
Default UDP port for DCS reflectors.
DISCONNECT_TIMEOUT
Disconnect ACK timeout โ€” give up waiting for unlink reply.
KEEPALIVE_INACTIVITY_TIMEOUT
DCS keepalive inactivity timeout.
KEEPALIVE_INTERVAL
DCS keepalive 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
DCS voice inactivity timeout โ€” synthesize VoiceEnd after this.
VOICE_LEN
Voice frame length (100 bytes).
VOICE_MAGIC
"0001" magic at offsets [0..4] of every DCS voice frame.