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"
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. | |
Heartbeat routers that deal with server heartbeating sending and receiving.