PcapSendQueue.queue

int queue(const(pcap_pkthdr) * header, const(ubyte) * data)

Adds a packet to the queue.

Parameters

headerThe packet header.
dataThe packet data.

Returns

0 on success, -1 if the queue is full.