itch-mold-replay 1.0
Time-accurate NASDAQ TotalView-ITCH 5.0 replay over MoldUDP64
Loading...
Searching...
No Matches
imr::mold::downstream::Feed Class Reference

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Feed()

imr::mold::downstream::Feed::Feed ( const Config cfg,
const PacketBuilder::Config packet_builder_cfg,
std::span< const char >  file,
RetransmissionBuffer retransmission_buffer 
)
explicit

Constructs the feed ready to begin downstream on configured multicast group/port.

Exceptions
std::invalid_argumentif cfg.mcast_group is not a valid IPv4 address
std::system_errorif socket creation / configuration fails

Member Function Documentation

◆ start()

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.


The documentation for this class was generated from the following file: