53 auto read(std::span<const std::byte> capture) -> bool;
60 auto read_file(
const std::string& path) -> bool;
81 [[nodiscard]]
auto udp_datagrams() const noexcept -> std::uint64_t {
return m_udp_datagrams; }
97 auto read_classic_pcap(std::span<const std::byte> capture,
bool swapped) -> bool;
104 auto read_pcapng(std::span<const std::byte> capture) -> bool;
113 auto handle_frame(std::span<const std::byte> frame, std::uint32_t link_type) -> void;
121 [[nodiscard]]
auto extract_udp_payload(std::span<const std::byte> network
122 )
const -> std::optional<std::span<const std::byte>>;
125 std::optional<std::uint16_t> m_port_filter {};
126 std::uint64_t m_udp_datagrams {0};
Decodes MoldUDP64 datagrams and forwards the contained ITCH messages.
auto messages_decoded() const noexcept -> std::uint64_t
Total number of ITCH messages decoded from all datagrams.
Replays ITCH market data straight from a captured network trace.
auto messages_decoded() const noexcept -> std::uint64_t
Total ITCH messages decoded across the whole capture.
auto udp_datagrams() const noexcept -> std::uint64_t
Number of UDP datagrams extracted and handed to the MoldUDP64 decoder.
auto clear_udp_port_filter() noexcept -> void
Clears any destination-port filter previously installed.
auto read_file(const std::string &path) -> bool
Reads and decodes a capture file from disk.
auto mold_decoder() noexcept -> MoldUdp64Decoder &
The embedded MoldUDP64 decoder (sequence tracking lives here).
auto set_udp_port_filter(std::uint16_t port) -> void
Restricts decoding to UDP datagrams sent to this destination port.
auto read(std::span< const std::byte > capture) -> bool
Decodes an in-memory capture buffer.
auto mold_decoder() const noexcept -> const MoldUdp64Decoder &
The embedded MoldUDP64 decoder (sequence tracking lives here).
Decoder for NASDAQ's MoldUDP64 UDP multicast market-data framing.
std::function< void(const Message &)> MessageCallback
The signature for the callback function used in streaming parse methods.
Public parsing interface for NASDAQ TotalView-ITCH 5.0 feeds, plus the low-level byte-unpacking utili...