135 SocketFamily m_SockFamily;
Definition: IpAddress.h:276
Definition: PointerVector.h:50
Definition: RawPacket.h:269
Definition: RawSocketDevice.h:38
RecvPacketResult
An enum for reporting packet receive results.
Definition: RawSocketDevice.h:42
@ RecvTimeout
Receive timeout - timeout expired without any packets being captured.
Definition: RawSocketDevice.h:46
@ RecvWouldBlock
Definition: RawSocketDevice.h:49
@ RecvSuccess
Receive success.
Definition: RawSocketDevice.h:44
@ RecvError
Receive error, usually will be followed by an error log.
Definition: RawSocketDevice.h:51
int receivePackets(RawPacketVector &packetVec, double timeout, int &failedRecv)
~RawSocketDevice()
A d'tor for this class. It closes the raw socket if not previously closed by calling close()
int sendPackets(const RawPacketVector &packetVec)
bool sendPacket(const RawPacket *rawPacket)
RecvPacketResult receivePacket(RawPacket &rawPacket, bool blocking=true, double timeout=-1)
RawSocketDevice(const IPAddress &interfaceIP)
void close() override
Close the raw socket.
The main namespace for the PcapPlusPlus lib.