Skip to content

PCAP.OpenCapture

Andrew Lambert edited this page Nov 26, 2022 · 4 revisions

PCAP.OpenCapture

Method signature

 Protected Function OpenCapture(CaptureFile As FolderItem, SnapLength As Integer = 65536, Flags As UInt32 = 0) As PCAP.Capture

Parameters

Name Type Comment
CaptureFile FolderItem A PCAP file to read packets from
SnapLength Integer Optional. If specified, the maximum number of bytes to read of each packet
Flags Integer Optional. If specified, the capture flags

Return value

A reference to a Capture object, or Nil on error.

Remarks

This method opens a PCAP file as though it were a network interface.

See also

Clone this wiki locally