ddn.lib.pcap.win.sendqueue

Windows-specific send queue support for libpcap.

This module provides the PcapSendQueue RAII wrapper for managing high-performance packet transmission on Windows.

Authors

Dejan Lekić

License

BSD-3-Clause

Types 1

RAII wrapper for libpcap's pcap_send_queue.

Fields
private pcap_send_queue * _queue
Methods
void destroy()Frees the queue resources.
bool isNull() const @safe pure nothrow @nogcChecks if the queue was successfully allocated.
int queue(const(pcap_pkthdr) * header, const(ubyte) * data)Adds a packet to the queue.
uint transmit(ref PcapHandle handle, bool sync = false)Transmits the contents of the queue.
uint length() const @safe pure nothrow @nogcReturns the current length of the queue in bytes.
uint maxLength() const @safe pure nothrow @nogcReturns the maximum size of the queue in bytes.
Constructors
this(uint memSize)Constructor allocates a new send queue.
Destructors
~thisDestructor destroys the queue.