Slick Sim 0.10.1
Exchange simulator that shadows real venues for risk-free strategy testing
Loading...
Searching...
No Matches
slick::sim::md_feed::PcapPacket Struct Reference

One UDP datagram read from a capture. More...

#include <md_feed/pcap_reader.hpp>

Collaboration diagram for slick::sim::md_feed::PcapPacket:

Public Attributes

uint64_t ts_ns = 0
 Capture time, nanoseconds since the epoch.
uint32_t dst_addr = 0
 IPv4 destination, host byte order.
uint16_t dst_port = 0
const uint8_t * data = nullptr
 UDP payload.
size_t size = 0

Detailed Description

One UDP datagram read from a capture.

data points into the reader's buffer and is valid until the next call to PcapReader::next().

Definition at line 29 of file pcap_reader.hpp.

Member Data Documentation

◆ data

const uint8_t* slick::sim::md_feed::PcapPacket::data = nullptr

UDP payload.

Definition at line 33 of file pcap_reader.hpp.

◆ dst_addr

uint32_t slick::sim::md_feed::PcapPacket::dst_addr = 0

IPv4 destination, host byte order.

Definition at line 31 of file pcap_reader.hpp.

◆ dst_port

uint16_t slick::sim::md_feed::PcapPacket::dst_port = 0

Definition at line 32 of file pcap_reader.hpp.

◆ size

size_t slick::sim::md_feed::PcapPacket::size = 0

Definition at line 34 of file pcap_reader.hpp.

◆ ts_ns

uint64_t slick::sim::md_feed::PcapPacket::ts_ns = 0

Capture time, nanoseconds since the epoch.

Definition at line 30 of file pcap_reader.hpp.


The documentation for this struct was generated from the following file: