Reflector: parse [TWIN] section (stub; no link behavior yet)
This commit is contained in:
1 parent
c76f07af31
commit
3c92de178c
2 files changed
+59
No files matched your search
@@ -87,6 +87,7 @@ namespace Async
|
||||
class ReflectorMsg;
|
||||
class ReflectorUdpMsg;
|
||||
class RedisStore;
|
||||
class TwinLink;
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
@@ -331,6 +332,13 @@ class Reflector : public sigc::trackable
|
||||
// Handed-off inbound trunk connections mapped to their TrunkLink
|
||||
std::map<Async::FramedTcpConnection*, TrunkLink*> m_trunk_inbound_map;
|
||||
|
||||
// Twin HA-pair support
|
||||
TwinLink* m_twin_link = nullptr;
|
||||
Async::TcpServer<Async::FramedTcpConnection>* m_twin_srv = nullptr;
|
||||
uint16_t m_twin_listen_port = 5304;
|
||||
// Pending inbound twin connections awaiting MsgTrunkHello
|
||||
std::map<Async::FramedTcpConnection*, Async::Timer*> m_twin_pending_cons;
|
||||
|
||||
// Satellite support
|
||||
bool m_is_satellite = false;
|
||||
SatelliteClient* m_satellite_client = nullptr;
|
||||
@@ -375,6 +383,8 @@ class Reflector : public sigc::trackable
|
||||
void refreshStatus(void);
|
||||
void initTrunkLinks(void);
|
||||
void initTrunkServer(void);
|
||||
void initTwinLink(void);
|
||||
void initTwinServer(void);
|
||||
void trunkClientConnected(Async::FramedTcpConnection* con);
|
||||
void trunkClientDisconnected(Async::FramedTcpConnection* con,
|
||||
Async::FramedTcpConnection::DisconnectReason reason);
|
||||
|
||||
Reference in new issue
Block a user