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

A MoldUDP64 server that replays NASDAQ TotalView-ITCH 5.0 files. More...

#include <server.h>

Classes

struct  Config
 Aggregate for configuration of all server components. More...
 

Public Member Functions

 Server (const Config &cfg)
 Constructs server ready to start.
 
void start ()
 Starts downstream replay and retransmission feeds.
 
void wait_for_downstream ()
 Blocks caller until downstream replay finishes.
 
void stop ()
 Stop all feeds early (before downstream reaches end of file).
 
 ~Server ()
 
 Server (const Server &)=delete
 
 Server (Server &&)=delete
 
Serveroperator= (const Server &)=delete
 
Serveroperator= (Server &&)=delete
 

Detailed Description

A MoldUDP64 server that replays NASDAQ TotalView-ITCH 5.0 files.

Constructor & Destructor Documentation

◆ Server() [1/3]

imr::Server::Server ( const Config cfg)
explicit

Constructs server ready to start.

Exceptions
std::invalid_arugmentif configuration passed is invalid
std::system_errorif system calls to setup server fail

◆ ~Server()

imr::Server::~Server ( )

◆ Server() [2/3]

imr::Server::Server ( const Server )
delete

◆ Server() [3/3]

imr::Server::Server ( Server &&  )
delete

Member Function Documentation

◆ start()

void imr::Server::start ( )

Starts downstream replay and retransmission feeds.

Downstreams and retransmission feeds run in background threads until downstream reaches end of file and finishes sending downstream packets

◆ wait_for_downstream()

void imr::Server::wait_for_downstream ( )

Blocks caller until downstream replay finishes.

◆ stop()

void imr::Server::stop ( )

Stop all feeds early (before downstream reaches end of file).

◆ operator=() [1/2]

Server & imr::Server::operator= ( const Server )
delete

◆ operator=() [2/2]

Server & imr::Server::operator= ( Server &&  )
delete

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