PcapWriter.create

PcapWriter create(Pcap pcap, string path)

Opens a file for writing pcap data.

Parameters

pcapA Pcap instance used to define the datalink and snapshot length.
pathThe path to the file to create.

Returns

A new PcapWriter instance.

Throws

PcapException if the file cannot be opened.