PcapPlusPlus
pcpp::IDevice Class Referenceabstract

#include <Device.h>

Inheritance diagram for pcpp::IDevice:
pcpp::DpdkDevice pcpp::IPcapDevice pcpp::PfRingDevice pcpp::RawSocketDevice pcpp::IFileDevice pcpp::PcapLiveDevice pcpp::IFileReaderDevice pcpp::IFileWriterDevice pcpp::PcapRemoteDevice pcpp::WinPcapLiveDevice pcpp::PcapFileReaderDevice pcpp::PcapNgFileReaderDevice pcpp::PcapFileWriterDevice pcpp::PcapNgFileWriterDevice

Public Member Functions

virtual bool open ()=0
 
virtual void close ()=0
 
bool isOpened ()
 

Detailed Description

An abstract interface representing all packet processing devices. It stands as the root class for all devices. This is an abstract class that cannot be instantiated

Member Function Documentation

◆ close()

◆ isOpened()

bool pcpp::IDevice::isOpened ( )
inline
Returns
True if the file is opened, false otherwise

◆ open()

virtual bool pcpp::IDevice::open ( )
pure virtual