-
-
Notifications
You must be signed in to change notification settings - Fork 1
PCAP.BeginCapture
Andrew Lambert edited this page Nov 26, 2022
·
8 revisions
PCAP.BeginCapture
Protected Function BeginCapture(CaptureDevice As PCAP.Adaptor, PromiscuousMode As Boolean = False, SnapLength As Integer = 65536, TimeOut As Integer = 1000, BufferSize As Integer = -1) As PCAP.Capture
Name | Type | Comment |
---|---|---|
CaptureDevice | Adaptor | A local network adaptor |
PromiscuousMode | Boolean | Optional. If specified, whether to capture in promiscuous mode (default is False ) |
SnapLength | Integer | Optional. If specified, the maximum number of bytes to read of each packet (default is MAX_SNAP_LENGTH ) |
Timeout | Integer | Optional. If specified, the maximum number of milliseconds to wait for a packet to arrive (default is 1000 ) |
BufferSize | Integer | Optional. If specified, the size of the kernel packet buffer in bytes (default is 2MB) |
A reference to a Capture object, or Nil on error.
Opens a local network adaptor for packet capture.
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2014-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.