|
itch-mold-replay 1.0
Time-accurate NASDAQ TotalView-ITCH 5.0 replay over MoldUDP64
|
Replays a MoldUDP64 downstream feed over multicast. More...
#include <feed.h>
Classes | |
| struct | Config |
Public Member Functions | |
| Feed (const Config &cfg, const PacketBuilder::Config &packet_builder_cfg, std::span< const char > file, RetransmissionBuffer &retransmission_buffer) | |
| Constructs the feed ready to begin downstream on configured multicast group/port. | |
| void | start (std::stop_token st) |
Replays the file until EOF or st stopped, then send end of session packets for configured duration. | |
Replays a MoldUDP64 downstream feed over multicast.
Sends heartbeats on a fixed period while running, then end of session packets for end_of_session_duration once the file is exhausted or start()'s stop_token is triggered.
|
explicit |
Constructs the feed ready to begin downstream on configured multicast group/port.
| std::invalid_argument | if cfg.mcast_group is not a valid IPv4 address |
| std::system_error | if socket creation / configuration fails |
| void imr::mold::downstream::Feed::start | ( | std::stop_token | st | ) |
Replays the file until EOF or st stopped, then send end of session packets for configured duration.
Blocks until finished.