MXL : Media eXchange Layer
MXL
Loading...
Searching...
No Matches
PcapReader.hpp File Reference

Minimal reader for the UDP datagrams in the pcap files used by the tests. More...

#include <cstddef>
#include <cstdint>
#include <filesystem>
#include <span>
#include <stdexcept>
#include <string>
#include <vector>
#include "Utils.hpp"
Include dependency graph for PcapReader.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mxl::tests::UdpDatagram

Namespaces

namespace  mxl
namespace  mxl::tests
namespace  mxl::tests::detail

Functions

std::uint16_t mxl::tests::detail::readBigEndian16 (std::span< std::uint8_t const > bytes, std::size_t offset)
std::uint32_t mxl::tests::detail::readPcap32 (std::span< std::uint8_t const > bytes, std::size_t offset, bool bigEndian)
std::vector< UdpDatagram > mxl::tests::readUdpDatagrams (std::filesystem::path const &path)

Detailed Description

Minimal reader for the UDP datagrams in the pcap files used by the tests.

Definition in file PcapReader.hpp.