Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
WatchcallNTCommunicationController.hpp
Go to the documentation of this file.
1
5
6#ifndef IV_SRC_COMMS_WATCHCALLNT_WATCHCALLNTCOMMUNICATIONCONTROLLER_HPP_
7#define IV_SRC_COMMS_WATCHCALLNT_WATCHCALLNTCOMMUNICATIONCONTROLLER_HPP_
8
10{
12 public std::enable_shared_from_this<WatchcallNTCommunicationController>
13{
15
16public:
18 explicit WatchcallNTCommunicationController(const std::shared_ptr<ICommunicationDriver> &driver,
19 const std::shared_ptr<iv::model::comms::NetworkData> &networkData);
20
24
27
29 sendWatchcallNTMessage(const std::shared_ptr<iv::comms::watchcallNT::AbstractWatchcallNTMessage> &message,
30 iv::types::repeaterId destination) const;
31
33 sendWatchcallNTBroadcast(const std::shared_ptr<iv::comms::watchcallNT::AbstractWatchcallNTMessage> &message) const;
34
35private:
36 bool frame() override;
37
38 bool sendFrame();
39 bool receiveFrame();
40 void initialize() override;
41 void addChannel(const std::shared_ptr<iv::channels::AbstractChannel> &channel) override;
42
45
47
48 std::map<iv::types::repeaterId, std::pair<iv::types::ipAddress, iv::types::ipPort>> m_repeaterAddresses;
49 std::weak_ptr<iv::alarms::WatchcallManager> m_watchcallManager;
50};
51}// namespace iv::comms::watchcallNT
52
53#endif//IV_SRC_COMMS_WATCHCALLNT_WATCHCALLNTCOMMUNICATIONCONTROLLER_HPP_
Definition ICommunicationController.hpp:23
Definition WatchcallNTCommunicationController.hpp:13
bool sendFrame()
Definition WatchcallNTCommunicationController.cpp:187
WatchcallNTCommunicationController & operator=(const WatchcallNTCommunicationController &other)=delete
bool receiveFrame()
Definition WatchcallNTCommunicationController.cpp:234
iv::types::timestamp m_lastReceivedMessageTimestamp
Definition WatchcallNTCommunicationController.hpp:43
WatchcallNTCommunicationController(const WatchcallNTCommunicationController &other)=delete
void initialize() override
Definition WatchcallNTCommunicationController.cpp:74
std::map< iv::types::repeaterId, std::pair< iv::types::ipAddress, iv::types::ipPort > > m_repeaterAddresses
Definition WatchcallNTCommunicationController.hpp:48
bool frame() override
Definition WatchcallNTCommunicationController.cpp:126
iv::comms::eResponse sendWatchcallNTMessage(const std::shared_ptr< iv::comms::watchcallNT::AbstractWatchcallNTMessage > &message, iv::types::repeaterId destination) const
Definition WatchcallNTCommunicationController.cpp:141
WatchcallNTCommunicationController(WatchcallNTCommunicationController &&other)=delete
WatchcallNTCommunicationController & operator=(WatchcallNTCommunicationController &&other)=delete
std::weak_ptr< iv::alarms::WatchcallManager > m_watchcallManager
Definition WatchcallNTCommunicationController.hpp:49
iv::types::repeaterId m_repeaterId
Definition WatchcallNTCommunicationController.hpp:46
iv::comms::eResponse sendWatchcallNTBroadcast(const std::shared_ptr< iv::comms::watchcallNT::AbstractWatchcallNTMessage > &message) const
Definition WatchcallNTCommunicationController.cpp:169
void addChannel(const std::shared_ptr< iv::channels::AbstractChannel > &channel) override
Definition WatchcallNTCommunicationController.cpp:137
iv::types::timestamp m_startTime
Definition WatchcallNTCommunicationController.hpp:44
Definition WatchcallNTCommunicationController.cpp:12
Definition enums.hpp:5
eResponse
Definition enums.hpp:285
uint64_t timestamp
Definition types.hpp:21
std::string repeaterId
Definition types.hpp:79