|
| | PcapReader (MessageCallback callback) |
| | Constructs a reader that forwards each decoded ITCH message to callback.
|
| |
| auto | read (std::span< const std::byte > capture) -> bool |
| | Decodes an in-memory capture buffer.
|
| |
| auto | read_file (const std::string &path) -> bool |
| | Reads and decodes a capture file from disk.
|
| |
| auto | set_udp_port_filter (std::uint16_t port) -> void |
| | Restricts decoding to UDP datagrams sent to this destination port.
|
| |
| auto | clear_udp_port_filter () noexcept -> void |
| | Clears any destination-port filter previously installed.
|
| |
| auto | mold_decoder () noexcept -> MoldUdp64Decoder & |
| | The embedded MoldUDP64 decoder (sequence tracking lives here).
|
| |
| auto | mold_decoder () const noexcept -> const MoldUdp64Decoder & |
| | The embedded MoldUDP64 decoder (sequence tracking lives here).
|
| |
| auto | udp_datagrams () const noexcept -> std::uint64_t |
| | Number of UDP datagrams extracted and handed to the MoldUDP64 decoder.
|
| |
| auto | messages_decoded () const noexcept -> std::uint64_t |
| | Total ITCH messages decoded across the whole capture.
|
| |
Replays ITCH market data straight from a captured network trace.
Firms most often archive and share feeds as packet captures, so being able to consume a .pcap/.pcapng file directly removes the need to pre-strip the transport framing. The reader is implemented entirely in-house (no libpcap dependency): it understands the classic pcap and the pcapng container formats, walks the Ethernet / IPv4 / IPv6 / UDP layers of each captured frame, extracts the UDP payload, and feeds it through an embedded MoldUdp64Decoder, which in turn yields the decoded ITCH messages to the caller's callback.
- Note
- Only offline capture files are supported. Live capture would require a platform packet-capture library and is tracked as future work behind a separate build option.
Definition at line 39 of file pcap.hpp.