16 #if defined(PCAPPP_MINGW_ENV) && !defined(WIN32) 41 pcap_t* m_PcapDescriptor;
45 IPcapDevice() { m_DeviceOpened =
false; m_PcapDescriptor = NULL; }
54 virtual bool open() = 0;
59 virtual void close() = 0;
64 inline bool isOpened() {
return m_DeviceOpened; }
87 virtual bool setFilter(std::string filterAsString);
static bool verifyFilter(std::string filterAsString)
Definition: RawPacket.h:220
Definition: PcapDevice.h:38
The main namespace for the PcapPlusPlus lib.
Definition: PcapFilter.h:72
PointerVector< RawPacket > RawPacketVector
Definition: PcapDevice.h:31
Definition: PointerVector.h:24
bool isOpened()
Definition: PcapDevice.h:64
virtual void getStatistics(pcap_stat &stats)=0
static bool matchPakcetWithFilter(std::string filterAsString, RawPacket *rawPacket)
bool setFilter(GeneralFilter &filter)