Obsidian
Probabilistic Geophysical Joint Inversion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
clientheartbeat.cpp File Reference

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"
Include dependency graph for clientheartbeat.cpp:

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...
 

Detailed Description

Implementation of heartbeat routers that deal with client heartbeating sending and receiving.

Author
Lachlan McCalman
Date
2014
License:
Affero General Public License version 3 or later