TwinLink: outbound connect, handshake, heartbeat skeleton
Implements TwinLink.cpp with constructor (random priority nonce via std::random_device, signal wiring), initialize() (parse [TWIN] HOST/PORT/ SECRET and [GLOBAL] LOCAL_PREFIX, addStaticSRVRecord + reconnect policy, m_con.connect()), onConnected() sending MsgTrunkHello with ROLE_TWIN, handleMsgTrunkHello() validating role/HMAC/prefix-match, heartbeatTick() (2s TX / 5s RX thresholds), sendMsg/sendMsgOnOutbound/sendMsgOnInbound, and acceptInboundConnection(). Phase C handlers (talker mirror, audio, ext-trunk) are present as empty stubs. Wires Reflector::initTwinLink() to construct and initialize a real TwinLink (replaces stub), adds destructor cleanup, and adds TwinLink.cpp to CMakeLists sources. Build passes clean.
This commit is contained in:
1 parent
074b1aea4c
commit
9f349fff5c
3 files changed
+550
-3
No files matched your search
@@ -35,6 +35,7 @@ set(LIBS asynccpp asyncaudio asynccore svxmisc ${LIBS})
|
||||
# Build the executable
|
||||
add_executable(svxreflector
|
||||
svxreflector.cpp Reflector.cpp ReflectorClient.cpp TGHandler.cpp TrunkLink.cpp
|
||||
TwinLink.cpp
|
||||
SatelliteLink.cpp SatelliteClient.cpp MqttPublisher.cpp RedisStore.cpp
|
||||
RedisAsyncAdapter.cpp RedisLiveQueue.cpp
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user