Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Listener ¶
type Listener struct { PcapHandle *pcap.Handle PacketHandler PacketHandler Timer time.Duration TimerHandler TimerHandler File string Device string Promisc bool Snaplen int Timeout time.Duration Filter string MaxPkts int MaxTime time.Duration }
Listener is a pcap listener that reads packets from a file or device and calls Handlers for packets and timer events
type PacketHandler ¶
PacketHandler is the interface called by Listener for handling packets
type TimerHandler ¶
type TimerHandler interface {
HandleTimer()
}
TimerHandler is the interface called by Listener for timer events
Click to show internal directories.
Click to hide internal directories.