PcapPlusPlus
|
#include <PcapFileDevice.h>
Public Member Functions | |
std::string | getFileName () |
virtual void | close () |
Public Member Functions inherited from pcpp::IPcapDevice | |
virtual bool | open ()=0 |
bool | isOpened () |
virtual void | getStatistics (pcap_stat &stats)=0 |
bool | setFilter (GeneralFilter &filter) |
virtual bool | setFilter (std::string filterAsString) |
void | clearFilter () |
Additional Inherited Members | |
Static Public Member Functions inherited from pcpp::IPcapDevice | |
static bool | verifyFilter (std::string filterAsString) |
static bool | matchPakcetWithFilter (std::string filterAsString, RawPacket *rawPacket) |
An abstract class (cannot be instantiated, has a private c'tor) which is the parent class for all file devices
|
virtual |
Close the file
Implements pcpp::IPcapDevice.
Reimplemented in pcpp::PcapNgFileWriterDevice, pcpp::PcapFileWriterDevice, and pcpp::PcapNgFileReaderDevice.
std::string pcpp::IFileDevice::getFileName | ( | ) |