28 int m_MinAmountOfDataToCopyFromKernelToApplication;
31 WinPcapLiveDevice(pcap_if_t* iface,
bool calculateMTU,
bool calculateMacAddress,
bool calculateDefaultGateway);
44 void* onStatsUpdateUserCookie);
46 void* onStatsUpdateUserCookie);
71 return m_MinAmountOfDataToCopyFromKernelToApplication;
Definition: PcapLiveDevice.h:79
LiveDeviceType
Definition: PcapLiveDevice.h:140
@ WinPcapDevice
Definition: PcapLiveDevice.h:144
virtual bool startCapture(OnPacketArrivesCallback onPacketArrives, void *onPacketArrivesUserCookie)
virtual int sendPackets(RawPacket *rawPacketsArr, int arrLength, bool checkMtu=false)
Definition: PcapLiveDeviceList.h:25
Definition: PointerVector.h:29
Definition: RawPacket.h:269
Definition: WinPcapLiveDevice.h:24
bool startCapture(int intervalInSecondsToUpdateStats, OnStatsUpdateCallback onStatsUpdate, void *onStatsUpdateUserCookie)
bool startCapture(RawPacketVector &capturedPacketsVector)
Definition: WinPcapLiveDevice.h:47
virtual LiveDeviceType getDeviceType() const
Definition: WinPcapLiveDevice.h:37
int getMinAmountOfDataToCopyFromKernelToApplication() const
Definition: WinPcapLiveDevice.h:69
virtual int sendPackets(RawPacket *rawPacketsArr, int arrLength, bool checkMtu=false)
bool startCapture(OnPacketArrivesCallback onPacketArrives, void *onPacketArrivesUserCookie, int intervalInSecondsToUpdateStats, OnStatsUpdateCallback onStatsUpdate, void *onStatsUpdateUserCookie)
bool setMinAmountOfDataToCopyFromKernelToApplication(int size)
The main namespace for the PcapPlusPlus lib.
std::function< void(RawPacket *, PcapLiveDevice *, void *)> OnPacketArrivesCallback
Definition: PcapLiveDevice.h:36
std::function< void(IPcapDevice::PcapStats &, void *)> OnStatsUpdateCallback
Definition: PcapLiveDevice.h:53