Slick Sim 0.10.1
Exchange simulator that shadows real venues for risk-free strategy testing
Loading...
Searching...
No Matches
pcap_feed.cpp File Reference
#include "pcap_feed.hpp"
#include <slick/logger.hpp>
#include <algorithm>
#include <charconv>
#include <chrono>
#include <cmath>
#include <cstdint>
#include <cstring>
#include <format>
#include <stdexcept>
Include dependency graph for pcap_feed.cpp:

Go to the source code of this file.

Namespaces

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

Functions

uint64_t slick::sim::md_feed::parse_utc_time_ns (const std::string &text)
 Parses a UTC "YYYY-MM-DDTHH:MM:SS[.fraction][Z]" into nanoseconds since the epoch.
std::vector< PcapLine > slick::sim::md_feed::parse_pcap_lines (const nlohmann::json &config, std::span< const std::pair< const char *, uint8_t > > keys)
 The multicast groups of a pcap feed's config: for each {key, line} that the config names, { "address", "port" } and optionally "path" (one capture file, used instead of the root directory's layout) or "paths" (several, oldest first).