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 by0x00at 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 by0x00at 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
DExtrareflectors. - DISCONNECT_
TIMEOUT DExtradisconnect ACK timeout — give up waiting for unlink reply.- DSVT_
MAGIC - DSVT magic at offsets
[0..4]of everyDExtravoice packet. - HEADER_
RETX - Number of times the voice header is retransmitted.
- KEEPALIVE_
INACTIVITY_ TIMEOUT DExtrakeepalive inactivity timeout.- KEEPALIVE_
INTERVAL DExtrakeepalive 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 DExtravoice inactivity timeout — synthesizeVoiceEndafter this.