From 074b1aea4cc5b32c8fa0d508b640cf1084281be0 Mon Sep 17 00:00:00 2001 From: Audric Date: Wed, 15 Apr 2026 20:27:33 +0200 Subject: [PATCH] TwinLink.h: align with TrunkLink.h style (GPL header, section comments, heartbeatTick name) --- src/svxlink/reflector/TwinLink.h | 42 +++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/src/svxlink/reflector/TwinLink.h b/src/svxlink/reflector/TwinLink.h index 9f96273..49f87c4 100644 --- a/src/svxlink/reflector/TwinLink.h +++ b/src/svxlink/reflector/TwinLink.h @@ -4,6 +4,25 @@ @author GeuReflector @date 2026-04-15 +\verbatim +SvxReflector - An audio reflector for connecting SvxLink Servers +Copyright (C) 2003-2026 Tobias Blomberg / SM0SVX + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +\endverbatim + The twin link mirrors the full TGHandler state between two paired reflectors (see docs/TWIN_PROTOCOL.md). Unlike TrunkLink there is no prefix filtering, no TG ownership arbitration, and no cluster-TG @@ -13,15 +32,36 @@ logic — the pair shares everything. #ifndef TWINLINK_INCLUDED #define TWINLINK_INCLUDED + +/**************************************************************************** + * + * System Includes + * + ****************************************************************************/ + #include #include #include + +/**************************************************************************** + * + * Project Includes + * + ****************************************************************************/ + #include #include #include #include + +/**************************************************************************** + * + * Forward declarations + * + ****************************************************************************/ + class Reflector; class MsgTrunkHello; class ReflectorMsg; @@ -100,7 +140,7 @@ class TwinLink void handleMsgTrunkHeartbeat(void); void handleMsgTwinExtTalkerStart(std::istream& is); void handleMsgTwinExtTalkerStop(std::istream& is); - void onHeartbeatTick(Async::Timer*); + void heartbeatTick(Async::Timer*); bool sendMsg(const ReflectorMsg& msg); void sendMsgOnOutbound(const ReflectorMsg& msg);