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