Class PcapReader

Class Documentation

class PcapReader

Public Functions

PcapReader(const std::string &filename, const std::string &ip_address, unsigned int port, network::ProtocolType protocol_type)
~PcapReader()
explicit operator bool() const
bool readSingle(network::NonOwningBuffer *payload)
std::list<std::vector<std::byte>> reallAll()

Reads the whole pcap file into memory, stripping protocol data and keeping only the payload. XXX Make sure you have enough RAM