Slick Sim 0.10.1
Exchange simulator that shadows real venues for risk-free strategy testing
Loading...
Searching...
No Matches
pcap_replay_source.hpp File Reference
#include "pcap_reader.hpp"
#include <slick/spsc_queue.hpp>
#include <algorithm>
#include <atomic>
#include <bit>
#include <cmath>
#include <chrono>
#include <cstdint>
#include <ctime>
#include <exception>
#include <filesystem>
#include <format>
#include <memory>
#include <optional>
#include <queue>
#include <stdexcept>
#include <string>
#include <thread>
#include <utility>
#include <vector>
Include dependency graph for pcap_replay_source.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  slick::sim::md_feed::PcapLine
 One multicast group of a replay, as the venue knows it (an enum value below MulticastPacketFeed::MAX_LINES, like the live feeds). More...
class  slick::sim::md_feed::PcapReplaySource
 Replays several captured multicast groups as one packet stream in capture-time order. More...
struct  slick::sim::md_feed::PcapReplaySource::Item
 A packet at the head of the stream. data is valid until pop(). More...
class  slick::sim::md_feed::ReplayPacer
 Decides when a packet captured at some time is due, on the wall clock. More...

Namespaces

namespace  slick
namespace  slick::sim
namespace  slick::sim::md_feed

Functions

std::vector< std::string > slick::sim::md_feed::resolve_pcap_files (const std::string &root, const std::string &address, uint16_t port, uint64_t begin_ns, uint64_t end_ns)
 The capture files of group address:port that can hold packets in [begin_ns, end_ns].