|
itch-mold-replay 1.0
Time-accurate NASDAQ TotalView-ITCH 5.0 replay over MoldUDP64
|
Sends MoldUDP64 heartbeat packets at a configured interval. More...
#include <heartbeat.h>
Public Member Functions | |
| Heartbeat (std::chrono::nanoseconds period, util::FileDescriptor &socket, const sockaddr_in &mcast_group, std::string_view session, const std::atomic< types::header::SequenceNumber > &next_seq) | |
| void | start () |
| void | stop () |
| std::chrono::nanoseconds | period () const noexcept |
Sends MoldUDP64 heartbeat packets at a configured interval.
| imr::mold::downstream::Heartbeat::Heartbeat | ( | std::chrono::nanoseconds | period, |
| util::FileDescriptor & | socket, | ||
| const sockaddr_in & | mcast_group, | ||
| std::string_view | session, | ||
| const std::atomic< types::header::SequenceNumber > & | next_seq | ||
| ) |
| period | Interval between heartbeat packets. |
| socket | UDP socket to send on |
| next_seq | Sequence number read on each send; must outlive this object. |
| void imr::mold::downstream::Heartbeat::start | ( | ) |
| void imr::mold::downstream::Heartbeat::stop | ( | ) |
|
noexcept |