summaryrefslogtreecommitdiff
path: root/Network/NetworkMessage.hpp
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-09-26 23:24:03 +0200
committerChristoph Berg <myon@debian.org>2026-09-26 23:24:03 +0200
commit059831534c7e884f0a607ed86b582fd00d821731 (patch)
tree76bcb67a78f8aa2654fd34c2ad801a62136b0170 /Network/NetworkMessage.hpp
parentd83a420f0517d7fc47aeb288a6a0cf4891784fcc (diff)
New upstream version 3.2.0~rc1+dfsgupstream/3.2.0_rc1+dfsg
Diffstat (limited to 'Network/NetworkMessage.hpp')
-rw-r--r--Network/NetworkMessage.hpp70
1 files changed, 70 insertions, 0 deletions
diff --git a/Network/NetworkMessage.hpp b/Network/NetworkMessage.hpp
index 74a268fa..fdb5cb91 100644
--- a/Network/NetworkMessage.hpp
+++ b/Network/NetworkMessage.hpp
@@ -50,6 +50,10 @@
* strings and null strings. Empty strings have a length of zero
* whereas null strings have a length field of 0xffffffff.
*
+ * Reference servers distinguish clients by sender address and Id and echo
+ * that Id in requests. The destination UDP endpoint selects the WSJT-X
+ * recipient; Id is not an authorization check.
+ *
*
* Schema Negotiation
* ------------------
@@ -231,6 +235,9 @@
* validation. Off air decodes are those that result from playing
* back a .WAV file.
*
+ * Mode is the decoded-line marker ("~" for FT8, "+" for FT4), not
+ * the operating mode name carried by Status.
+ *
*
* Clear Out/In 3 quint32
* Id (unique key) utf8
@@ -279,6 +286,10 @@
* initiation the rest of the QSO is carried out manually using
* the normal WSJT-X user interface.
*
+ * Copy the fields from Time through Low confidence unchanged from
+ * Decode. Substituting a Status mode name such as "FT8" for the
+ * decoded-line marker "~" prevents matching.
+ *
* The Modifiers field allows the equivalent of keyboard
* modifiers to be sent "as if" those modifier keys where pressed
* while double-clicking the specified decoded message. The
@@ -529,6 +540,59 @@
* ffffffff will remove the sort-order value from the internal table.
* Callsigns without a sort order will be valued at zero for sorting purposes
* in the hound display.
+ *
+ * InhibitStatus Out 17
+ * Id (unique key) utf8
+ * Supported bool
+ * Inhibited bool
+ * Source station utf8
+ * Hold rx quint32
+ * Release rx quint32
+ * Expiries quint32
+ * Invalid quint32
+ *
+ * Supported means the active transceiver uses DTR or RTS PTT and Accept
+ * UDP requests is enabled, so the instance can apply inhibit commands.
+ * A supported snapshot is sent on state changes and after each Heartbeat.
+ * A final unsupported snapshot withdraws availability; controllers should
+ * expire an advertisement after three missing Heartbeat intervals.
+ * Inhibited means at least one hold is active and may remain true in a
+ * withdrawal until existing leases expire. Source station summarizes
+ * active holders. Counters are cumulative for the current transceiver
+ * lifetime.
+ *
+ * TxInhibit In 18
+ * Id (target unique key) utf8
+ * Controller ID utf8
+ * TTL milliseconds quint32
+ * Station utf8
+ *
+ * Send commands to the source address and ephemeral source port learned
+ * from ordinary WSJT-X traffic, using its exact Id and schema (2 or 3).
+ * Refresh the endpoint on subsequent traffic. Multicast allows multiple
+ * observers; unicast requires the controller to receive or relay the stream.
+ *
+ * Accept UDP requests authorizes this command. DTR or RTS PTT is required
+ * to apply holds. Disabling requests does not clear existing holds; they
+ * remain active until their leases expire.
+ *
+ * Controller ID is a stable, nonempty UTF-8 identity of at most 128 bytes,
+ * with no whitespace or nonprinting characters. Station is descriptive
+ * UTF-8 text of at most 128 bytes, without nonprinting characters; send an
+ * empty or null string when no label is needed. Both fields must be present.
+ *
+ * A zero TTL releases only this controller. A positive TTL from 100 through
+ * 30000 milliseconds creates or refreshes its hold. All unexpired holds
+ * combine with logical OR. Controller identity, not source port or Station,
+ * owns a hold. Id is required to match exactly.
+ *
+ * Up to 64 controllers are tracked individually. Additional identities
+ * extend an aggregate hold until its longest lease expires; releases
+ * cannot clear that aggregate. Its expiry counts as one expiry.
+ *
+ * Datagrams are limited to 4096 bytes and the target Id to 1024 bytes.
+ * Malformed commands are ignored and counted; other target IDs are ignored.
+ * Unknown trailing fields within the datagram limit are ignored as usual.
*/
#include <QDataStream>
@@ -561,10 +625,16 @@ namespace NetworkMessage
SwitchConfiguration,
Configure,
AnnotationInfo,
+ InhibitStatus = 17,
+ TxInhibit = 18,
maximum_message_type_ // ONLY add new message types
// immediately before here
};
+ static_assert (InhibitStatus == 17, "TX-inhibit protocol type must remain 17");
+
+ static_assert (TxInhibit == 18, "TX-inhibit command type must remain 18");
+
quint32 constexpr pulse {15}; // seconds
//