ddn.net.pcap.writer

High-level pcap writing API.

Authors

Dejan Lekić

License

BSD-3-Clause

Types 1

High-level RAII wrapper for writing pcap files.

Fields
private PcapDumper _dumper
Methods
void close()Closes the writer.
PcapWriter create(Pcap pcap, string path)Opens a file for writing pcap data.
void write(const ref Packet pkt)Writes a packet to the file.
void flush()Flushes buffered data to disk.
Constructors
this(PcapDumper dumper)Internal constructor.