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

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

#include <server.h>

Public Attributes

util::MemoryMappedFile::Config mapped_itch_file_cfg
 
mold::PacketBuilder::Config packet_builder_cfg
 
mold::downstream::Feed::Config downstream_feed_config
 
std::size_t retransmission_buffer_size {1 << 22U}
 Capacity of the retransmission ring buffer in messages.
 
mold::retransmission::Feed::Config retransmission_feed_config
 
std::size_t num_retransmission_feeds {std::max(std::thread::hardware_concurrency() - 1, 1U)}
 Number of retransmission feed worker threads.
 

Detailed Description

Aggregate for configuration of all server components.

Member Data Documentation

◆ mapped_itch_file_cfg

util::MemoryMappedFile::Config imr::Server::Config::mapped_itch_file_cfg

◆ packet_builder_cfg

mold::PacketBuilder::Config imr::Server::Config::packet_builder_cfg

◆ downstream_feed_config

mold::downstream::Feed::Config imr::Server::Config::downstream_feed_config

◆ retransmission_buffer_size

std::size_t imr::Server::Config::retransmission_buffer_size {1 << 22U}

Capacity of the retransmission ring buffer in messages.

Power-of-two sizes use bitmasking for index lookup (faster); non-power-of-two sizes fall back to division.

◆ retransmission_feed_config

mold::retransmission::Feed::Config imr::Server::Config::retransmission_feed_config

◆ num_retransmission_feeds

std::size_t imr::Server::Config::num_retransmission_feeds {std::max(std::thread::hardware_concurrency() - 1, 1U)}

Number of retransmission feed worker threads.

Defaults to either 1 or one less than the hardware thread count for multicore systems to leave one thread for the downstream feed


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