35 #include <pcap/pcap.h> 85 bool connect(
const char* device);
121 #endif // PCAP_READER_H ReadResult read()
Attempt to read a packet and store data to buffer.
Unable to parse data, parsing error.
std::vector< uint8_t > buffer_t
~PcapDevice()
Destructor for PcapDevice.
void disconnect()
Close connected file.
bool isConnected() const
Check if file is open and healthy.
bool connect(const char *device)
Try to open a pcap file.
static const size_t BUFFSIZE
ROSaicNodeBase * node_
Pointer to the node.
Class for handling a pcap file.
ReadResult
Read operation status.
buffer_t & m_dataBuff
Reference to raw data buffer to write to.
This class is the base class for abstraction.
PcapDevice(ROSaicNodeBase *node, buffer_t &buffer)
Constructor for PcapDevice.
pcap_t * m_device
File handle to pcap file.