TwinLink.h: align with TrunkLink.h style (GPL header, section comments, heartbeatTick name)
This commit is contained in:
1 parent
73aca6decc
commit
074b1aea4c
1 file changed
+41
-1
@@ -4,6 +4,25 @@
|
|||||||
@author GeuReflector
|
@author GeuReflector
|
||||||
@date 2026-04-15
|
@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
|
The twin link mirrors the full TGHandler state between two paired
|
||||||
reflectors (see docs/TWIN_PROTOCOL.md). Unlike TrunkLink there is
|
reflectors (see docs/TWIN_PROTOCOL.md). Unlike TrunkLink there is
|
||||||
no prefix filtering, no TG ownership arbitration, and no cluster-TG
|
no prefix filtering, no TG ownership arbitration, and no cluster-TG
|
||||||
@@ -13,15 +32,36 @@ logic — the pair shares everything.
|
|||||||
#ifndef TWINLINK_INCLUDED
|
#ifndef TWINLINK_INCLUDED
|
||||||
#define TWINLINK_INCLUDED
|
#define TWINLINK_INCLUDED
|
||||||
|
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
*
|
||||||
|
* System Includes
|
||||||
|
*
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
*
|
||||||
|
* Project Includes
|
||||||
|
*
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
#include <AsyncConfig.h>
|
#include <AsyncConfig.h>
|
||||||
#include <AsyncTcpPrioClient.h>
|
#include <AsyncTcpPrioClient.h>
|
||||||
#include <AsyncFramedTcpConnection.h>
|
#include <AsyncFramedTcpConnection.h>
|
||||||
#include <AsyncTimer.h>
|
#include <AsyncTimer.h>
|
||||||
|
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
*
|
||||||
|
* Forward declarations
|
||||||
|
*
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
class Reflector;
|
class Reflector;
|
||||||
class MsgTrunkHello;
|
class MsgTrunkHello;
|
||||||
class ReflectorMsg;
|
class ReflectorMsg;
|
||||||
@@ -100,7 +140,7 @@ class TwinLink
|
|||||||
void handleMsgTrunkHeartbeat(void);
|
void handleMsgTrunkHeartbeat(void);
|
||||||
void handleMsgTwinExtTalkerStart(std::istream& is);
|
void handleMsgTwinExtTalkerStart(std::istream& is);
|
||||||
void handleMsgTwinExtTalkerStop(std::istream& is);
|
void handleMsgTwinExtTalkerStop(std::istream& is);
|
||||||
void onHeartbeatTick(Async::Timer*);
|
void heartbeatTick(Async::Timer*);
|
||||||
|
|
||||||
bool sendMsg(const ReflectorMsg& msg);
|
bool sendMsg(const ReflectorMsg& msg);
|
||||||
void sendMsgOnOutbound(const ReflectorMsg& msg);
|
void sendMsgOnOutbound(const ReflectorMsg& msg);
|
||||||
|
|||||||
Reference in new issue
Block a user