parse_pcap_file Method

Parses the specified pcap file.

Syntax

def parse_pcap_file(file_name: str) -> None: ...

Remarks

This method parses the specified pcap (packet capture) file and fires events as if the traffic were received directly.

The class supports both the standard pcap and the newer pcap-ng file formats used by a variety of popular network capture tools. When calling this method the file will be parsed and the on_ip_packet event will fire for each parsed packet.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 Python Edition - Version 20.0 [Build 8307]