Implementation of heartbeat routers that deal with client heartbeating sending and receiving. More...
#include "comms/clientheartbeat.hpp"
#include <stdexcept>
#include <glog/logging.h>
#include "comms/settings.hpp"
Namespaces | |
stateline | |
stateline::comms | |
Functions | |
void | stateline::comms::failedSend (const Message &m) |
Stop the heartbeat thread. This is called when the thread can't send to the local socket. | |
void | stateline::comms::monitorTimeout (hrc::time_point &lastReceivedTime, SocketRouter &router, uint msTimeout) |
Update book-keeping on server heartbeats. Called every time the socket is polled. More... | |
void | stateline::comms::heartbeatArrived (hrc::time_point &lastReceivedTime) |
Update book-keeping on server heartbeats. Called when the socket receives a heartbeat from the server. More... | |
void | stateline::comms::sendHeartbeat (hrc::time_point &lastSendTime, SocketRouter &router, uint msFrequency) |
Send a heartbeat to the server if necessary. More... | |
Implementation of heartbeat routers that deal with client heartbeating sending and receiving.