1 #ifndef PCAPP_WINPCAP_LIVE_DEVICE 2 #define PCAPP_WINPCAP_LIVE_DEVICE 23 class WinPcapLiveDevice :
public PcapLiveDevice
25 friend class PcapLiveDeviceList;
27 int m_MinAmountOfDataToCopyFromKernelToApplication;
30 WinPcapLiveDevice(pcap_if_t* iface,
bool calculateMTU,
bool calculateMacAddress,
bool calculateDefaultGateway);
32 WinPcapLiveDevice(
const WinPcapLiveDevice& other );
33 WinPcapLiveDevice& operator=(
const WinPcapLiveDevice& other);
36 virtual LiveDeviceType getDeviceType()
const {
return WinPcapDevice; }
39 bool startCapture(
int intervalInSecondsToUpdateStats,
OnStatsUpdateCallback onStatsUpdate,
void* onStatsUpdateUserCookie);
42 virtual int sendPackets(RawPacket* rawPacketsArr,
int arrLength);
51 bool setMinAmountOfDataToCopyFromKernelToApplication(
int size);
57 int getMinAmountOfDataToCopyFromKernelToApplication()
const {
return m_MinAmountOfDataToCopyFromKernelToApplication; }
The main namespace for the PcapPlusPlus lib.
void(* OnStatsUpdateCallback)(IPcapDevice::PcapStats &stats, void *userCookie)
Definition: PcapLiveDevice.h:54
void(* OnPacketArrivesCallback)(RawPacket *pPacket, PcapLiveDevice *pDevice, void *userCookie)
Definition: PcapLiveDevice.h:35
virtual bool startCapture(OnPacketArrivesCallback onPacketArrives, void *onPacketArrivesUserCookie)
PointerVector< RawPacket > RawPacketVector
Definition: Device.h:17