Skip to content

PCAP.Capture.CreateDead

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

PCAP.Capture.CreateDead

Method signature

  Shared Function CreateDead(LinkType As PCAP.LinkType, SnapLength As Integer) As PCAP.Capture

Parameters

Name Type Comment
LinkType LinkType The type of datalink to initialize the capture with
SnapLength Integer The maximum number of bytes per packet to capture

Return value

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

Remarks

This method constructs a Capture object without needing a reference to an Adaptor object. The returned Capture object is initialized as if it were created from an Adaptor of the specified LinkType.

Clone this wiki locally