Module consts

Module consts 

Source
Expand description

DExtra 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 offsets [10..13] of a 14-byte connect reply, followed by 0x00 at byte [13].
CONNECT_LEN
Connect (LINK/UNLINK) packet length (11 bytes).
CONNECT_NAK_TAG
NAK tag at offsets [10..13] of a 14-byte connect reply, followed by 0x00 at byte [13].
CONNECT_REPLY_LEN
Connect reply length (14 bytes: 11 + 3 tag).
CONNECT_RETX
Number of times the connect packet is retransmitted.
DEFAULT_PORT
Default UDP port for DExtra reflectors.
DISCONNECT_TIMEOUT
DExtra disconnect ACK timeout — give up waiting for unlink reply.
DSVT_MAGIC
DSVT magic at offsets [0..4] of every DExtra voice packet.
HEADER_RETX
Number of times the voice header is retransmitted.
KEEPALIVE_INACTIVITY_TIMEOUT
DExtra keepalive inactivity timeout.
KEEPALIVE_INTERVAL
DExtra keepalive interval.
POLL_LEN
Poll packet length (9 bytes).
VOICE_DATA_LEN
Voice data length (27 bytes).
VOICE_EOT_LEN
Voice EOT length (27 bytes, same as data but seq has 0x40 bit).
VOICE_HEADER_LEN
Voice header length (56 bytes).
VOICE_INACTIVITY_TIMEOUT
DExtra voice inactivity timeout — synthesize VoiceEnd after this.