CBOE Emulator
1.0
|
A Receiver context extension for printing data using a heartbeat timer. More...
#include <heartbeat.hpp>
Public Member Functions | |
Heartbeat (asio::io_context &context, Receiver< T > &receiver_, uint16_t time_=300, std::ostream &stream_=std::cout) | |
Initialize a new receiver heartbeat. More... | |
A Receiver context extension for printing data using a heartbeat timer.
|
inline |
Initialize a new receiver heartbeat.
context | the ASIO context to create the heartbeat with |
receiver_ | the receiver to read data from |
time_ | the number of milliseconds between beats |
stream_ | the output stream to write the data to |