26 int m_MinAmountOfDataToCopyFromKernelToApplication;
29 WinPcapLiveDevice(pcap_if_t* iface,
bool calculateMTU,
bool calculateMacAddress,
bool calculateDefaultGateway)
31 calculateDefaultGateway)
34 bool calculateDefaultGateway);
47 void* onStatsUpdateUserCookie)
override;
49 void* onStatsUpdateUserCookie)
override;
74 return m_MinAmountOfDataToCopyFromKernelToApplication;
Definition: PcapLiveDevice.h:79
LiveDeviceType
Definition: PcapLiveDevice.h:155
@ WinPcapDevice
Definition: PcapLiveDevice.h:159
virtual bool startCapture(OnPacketArrivesCallback onPacketArrives, void *onPacketArrivesUserCookie)
virtual int sendPackets(RawPacket *rawPacketsArr, int arrLength, bool checkMtu=false)
Definition: PcapLiveDeviceList.h:25
Definition: PointerVector.h:58
Definition: RawPacket.h:269
Definition: WinPcapLiveDevice.h:22
bool startCapture(RawPacketVector &capturedPacketsVector) override
Definition: WinPcapLiveDevice.h:50
int getMinAmountOfDataToCopyFromKernelToApplication() const
Definition: WinPcapLiveDevice.h:72
virtual int sendPackets(RawPacket *rawPacketsArr, int arrLength, bool checkMtu=false)
LiveDeviceType getDeviceType() const override
Definition: WinPcapLiveDevice.h:40
bool startCapture(OnPacketArrivesCallback onPacketArrives, void *onPacketArrivesUserCookie, int intervalInSecondsToUpdateStats, OnStatsUpdateCallback onStatsUpdate, void *onStatsUpdateUserCookie) override
bool setMinAmountOfDataToCopyFromKernelToApplication(int size)
bool startCapture(int intervalInSecondsToUpdateStats, OnStatsUpdateCallback onStatsUpdate, void *onStatsUpdateUserCookie) override
WinPcapLiveDevice * clone() const override
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
A struct that contains all details of a network interface.
Definition: PcapLiveDevice.h:86