Handles heartbeating on the client side. Client heartbeat assumes only one connection (to the server), so sends and receives to one source only. More...
#include <clientheartbeat.hpp>
Public Member Functions | |
ClientHeartbeat (zmq::context_t &context, const HeartbeatSettings &settings) | |
Create a new client heartbeat thread. More... | |
~ClientHeartbeat () | |
Cleanup resources used by the heartbeat thread. | |
void | start () |
Start the heartbeat thread. | |
void | stop () |
Stop the heartbeat thread. | |
Handles heartbeating on the client side. Client heartbeat assumes only one connection (to the server), so sends and receives to one source only.
stateline::comms::ClientHeartbeat::ClientHeartbeat | ( | zmq::context_t & | context, |
const HeartbeatSettings & | settings | ||
) |
Create a new client heartbeat thread.
context | The ZMQ context. |
settings | Heartbeat settings. |