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

Heartbeat routers that deal with server heartbeating sending and receiving. More...

#include <chrono>
#include "comms/messages.hpp"
#include "comms/transport.hpp"
#include "comms/router.hpp"
#include "comms/settings.hpp"
Include dependency graph for serverheartbeat.hpp:
This graph shows which files directly or indirectly include this file:

Classes

class  stateline::comms::ServerHeartbeat
 Handles heartbeating on the server side. Server heartbeat assumes that it has multiple connections from different clients, so sends to all of them, and keeps track of who is connected. More...
 

Namespaces

 stateline
 
 stateline::comms
 

Typedefs

typedef
std::chrono::high_resolution_clock 
hrc
 
typedef std::set< std::string > stateline::comms::HBClients
 A set of clients being monitored for heartbeating.
 
typedef std::map< std::string,
hrc::time_point > 
stateline::comms::HBMap
 A map of clients to when the last heartbeat arrived from that client.
 

Variables

const std::string SERVER_HB_SOCKET_ADDR = "inproc://serverhb"
 Heartbeat sockets talk on these addresses.
 

Detailed Description

Heartbeat routers that deal with server heartbeating sending and receiving.

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