How jamisonrobey/itch_mold_replay works
Project type and purpose
• This is a C++ command-line network utility (“open-source tool”) that reads a binary Nasdaq TotalView-ITCH file and replays it over the network using the MoldUDP64 protocol. It also implements a retransmission server to satisfy client requests for missing messages.
File structure
• Top-level:
• CMakeLists.txt and .clang-format: build and style config
• .gitmodules + external/jamutils: a submodule for shared utilities
• src/ directory:
• main.cpp: parses CLI, initializes components
• mold_udp_64.h, downstream_server.h: downstream multicast server interface
• retransmission_server.h, retransmission_worker.h: UDP server for retransmission
• itch.h, nasdaq.h: message definitions/parsers for ITCH protocol
• message_buffer.h: in-memory buffer of parsed messages for replay/retransmission
• server.h, downstream_server.h: abstract server interfaces
README for additional insights
• Describes two core servers:
• Downstream server: multicasts replayed messages at original timestamps
• Retransmission server: listens for UDP requests and responds with retained messages
• Configurable via CLI: multicast group/port, TTL, replay speed, start phase
• Built with CMake + g++14, runs on Linux