Documentation
¶
Overview ¶
Package pcap implements reading and writing the "classic" libpcap format.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct { LinkType LinkType // contains filtered or unexported fields }
Reader extracts packets from a pcap file.
func (*Reader) Next ¶
Next advances the Reader to the next packet in the input, which will then be available through the Packet method. It returns false when the Reader stops, either by reaching the end of the input or an error. After Next returns false, the Err method will return any error that occured while reading, except that if it was io.EOF, Err will return nil.
Click to show internal directories.
Click to hide internal directories.