parsePcapFile (method)
Parses the specified pcap file.
Syntax
- (void)parsePcapFile:(NSString*)fileName;
public func parsePcapFile(_ fileName: String) throws -> Void
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 IPPacket event will fire for each parsed packet.