open

fnPcapHandle open(string source, int snaplen, int flags, int readTimeout, pcap_rmtauth * auth, out string errBuf)

Opens a remote capture or local file using the modern pcap_open API.

Parameters

sourceThe source string (e.g. "rpcap://host/device").
snaplenThe snapshot length.
flagsOpen flags.
readTimeoutThe read timeout in milliseconds.
authAuthentication information (optional).
errBufBuffer to receive error information.

Returns

A PcapHandle.