42#ifndef INCLUDE_OLA_NETWORK_HEALTHCHECKEDCONNECTION_H_
43#define INCLUDE_OLA_NETWORK_HEALTHCHECKEDCONNECTION_H_
48#include <ola/thread/SchedulerInterface.h>
57class HealthCheckedConnection {
61 virtual ~HealthCheckedConnection();
74 virtual void SendHeartbeat() = 0;
112 bool SendNextHeartbeat();
113 void UpdateReceiveTimer();
114 void InternalHeartbeatTimeout();
116 HealthCheckedConnection(
const HealthCheckedConnection &) =
delete;
117 const HealthCheckedConnection &operator=(
const HealthCheckedConnection &) =
delete;
void PauseTimer()
Definition HealthCheckedConnection.cpp:80
void HeartbeatSent()
Definition HealthCheckedConnection.cpp:59
void HeartbeatReceived()
Definition HealthCheckedConnection.cpp:71
void ResumeTimer()
Definition HealthCheckedConnection.cpp:91
virtual void HeartbeatTimeout()=0
bool Setup()
Definition HealthCheckedConnection.cpp:45
Allows Callbacks to be scheduled to run after a specified interval.
Definition SchedulerInterface.h:46
Code for network communication.
Definition AdvancedTCPConnector.cpp:28
void * timeout_id
A timeout handle which can later be used to cancel a timeout.
Definition SchedulerInterface.h:34
The namespace containing all OLA symbols.
Definition Credentials.cpp:44