Expand description
DPlus 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_
RETX - Number of times the initial connect packet is retransmitted.
- DEFAULT_
PORT - Default UDP port for
DPlus(REF) reflectors. - DISCONNECT_
RETX - Number of times the unlink packet is retransmitted.
- DISCONNECT_
TIMEOUT DPlusdisconnect ACK timeout — give up waiting for unlink reply.- DSVT_
MAGIC - DSVT magic at offsets
[2..6]of every voice header / voice data / EOT packet. - DSVT_
TYPE - DSVT type byte (offset 1 of every DSVT-framed packet).
- DV_
CLIENT_ ID DV0199998-byte client identifier embedded in LINK2 at offsets[20..28].- HEADER_
RETX - Number of times the voice header is retransmitted.
- KEEPALIVE_
INACTIVITY_ TIMEOUT DPlusoutgoing keepalive inactivity timeout.- KEEPALIVE_
INTERVAL DPluskeepalive interval.- LINK1_
ACK_ BYTES - LINK1 ACK echo — server replies with the same bytes as LINK1.
- LINK1_
BYTES - LINK1 connect packet (5 bytes).
- LINK2_
ACCEPT_ TAG - LINK2 reply tag for accept (4 bytes at offsets
[4..8]of an 8-byte reply). - LINK2_
BUSY_ TAG - LINK2 reply tag for busy (4 bytes at offsets
[4..8]of an 8-byte reply). - LINK2_
HEADER - LINK2 packet header (4 bytes; full packet is 28 bytes with
callsign +
DV019999). - LINK2_
REPLY_ PREFIX - LINK2 reply prefix (first 4 bytes of an 8-byte reply, before the tag).
- POLL_
BYTES - Keepalive poll packet (3 bytes).
- POLL_
ECHO_ BYTES - Poll echo — server replies with the same bytes as POLL.
- RETX_
DELAY - Inter-copy delay for retransmission bursts.
- UNLINK_
ACK_ BYTES - UNLINK ACK echo — server replies with the same bytes as UNLINK.
- UNLINK_
BYTES - UNLINK packet (5 bytes).
- VOICE_
DATA_ PREFIX - Voice data DSVT length byte (offset 0 of a voice data packet).
- VOICE_
EOT_ PREFIX - Voice EOT DSVT length byte (offset 0 of an EOT packet).
- VOICE_
EOT_ TRAILER - EOT trailing pattern (last 6 bytes of an EOT packet).
- VOICE_
HEADER_ PREFIX - Voice header DSVT length byte (offset 0 of a voice header packet).
- VOICE_
INACTIVITY_ TIMEOUT DPlusvoice inactivity timeout — synthesizeVoiceEndafter this.