Obsidian
Probabilistic Geophysical Joint Inversion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
stateline::comms::ServerHeartbeat Class Reference

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

#include <serverheartbeat.hpp>

Public Member Functions

 ServerHeartbeat (zmq::context_t &context, const HeartbeatSettings &settings)
 Create a new server heartbeat thread. More...
 
 ~ServerHeartbeat ()
 Cleanup resources used by the heartbeat thread.
 
void start ()
 Start the heartbeat thread.
 
void stop ()
 Stop the heartbeat thread.
 

Detailed Description

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.

Constructor & Destructor Documentation

stateline::comms::ServerHeartbeat::ServerHeartbeat ( zmq::context_t &  context,
const HeartbeatSettings settings 
)

Create a new server heartbeat thread.

Parameters
contextThe ZMQ context.
settingsHeartbeat settings.

The documentation for this class was generated from the following files: