docs: refresh peer/twin protocol docs for recent fixes

PEER_PROTOCOL.md: UDP monitor-fanout filter is now gated by
SelectedTgIdleFilter (commit dc3a8c0).

TWIN_PROTOCOL.md: satellite-originated traffic now reaches the twin
partner via forwardSatellite*ToTwin (commit ace9da6).
This commit is contained in:
Audric committed 2026-05-10 23:09:22 +02:00
1 parent ace9da635b
commit 987353853c
2 files changed
+22 -7

No files matched your search

+14 -7
View File
@@ -250,13 +250,20 @@ keying, or marked it in its `monitoredTGs`, would never receive any audio
until something forced it to PTT first. To close that gap, each reflector until something forced it to PTT first. To close that gap, each reflector
periodically advertises its local interest set to its trunk peers. periodically advertises its local interest set to its trunk peers.
> The same change makes UDP audio (and `MsgUdpFlushSamples`) on a TG fan > UDP audio (and `MsgUdpFlushSamples`) on a TG can now fan out to local
> out to local clients monitoring it, not just the ones with that TG > clients monitoring it, not just the ones with that TG selected. The
> selected — the local broadcast filter is now > local broadcast filter is
> `TgFilter ∪ TgMonitorFilter` for both client-originated audio and > `TgFilter ∪ (TgMonitorFilter ∩ SelectedTgIdleFilter)` for
> trunk- / satellite-received audio. Without that, the protocol-level > client-originated audio and trunk- / satellite-received audio, where
> interest propagation would arrive at the right reflector but stop at > `SelectedTgIdleFilter` is true iff the receiver's selected TG has no
> its UDP fanout — passive monitors would still hear nothing. > active local or trunk talker (with `currentTG=0` short-circuited to
> true so passive observers keep receiving). The gate keeps a busy QSO
> on the selected TG from being interleaved with monitor-TG UDP frames
> at a client whose svxlink decoder cannot demultiplex
> (`MsgUdpAudio` carries no TG field). Without the OR arm at all, the
> protocol-level interest propagation would arrive at the right
> reflector but stop at its UDP fanout — passive monitors would still
> hear nothing.
`MsgPeerTgInterest(peer_id, tgs)` carries a list of TGs that this `MsgPeerTgInterest(peer_id, tgs)` carries a list of TGs that this
reflector's local clients have either selected (`tg`) or are monitoring reflector's local clients have either selected (`tg`) or are monitoring
+8
View File
@@ -161,6 +161,14 @@ but without the `isOwnedTG` gate. The twin does *not* re-forward the
audio to its own external trunks (that would duplicate — external audio to its own external trunks (that would duplicate — external
trunks are only held by the primary; see below). trunks are only held by the primary; see below).
Conversely, traffic originated by a downstream satellite is forwarded
to the twin partner symmetrically with how it reaches local trunks:
`SatelliteLink::handleMsgPeer{TalkerStart,TalkerStop,Audio,Flush}`
calls `Reflector::forwardSatellite{Audio,Stop,RawAudio,Flush}ToTwin`,
which delegates to the same `TwinLink::onLocal*` methods used by the
local-client TX path. Without this, the twin partner would be deaf to
all satellite-originated activity.
--- ---
## External-Trunk Ownership (Active/Active) ## External-Trunk Ownership (Active/Active)