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. | |
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.
stateline::comms::ServerHeartbeat::ServerHeartbeat | ( | zmq::context_t & | context, |
const HeartbeatSettings & | settings | ||
) |
Create a new server heartbeat thread.
context | The ZMQ context. |
settings | Heartbeat settings. |