A Listener, is called once for every packet that matches a certain filter or has a certain tap. It can read the tree, the packet's Tvb eventually the tapped data but it cannot add elements to the tree.
Creates a new Listener listener
- tap (optional)
-
The name of this tap
- filter (optional)
-
A filter that when matches the tap.packet function gets called (use nil to be called for every packet)
A function that will be called once every packet matches the Listener listener filter. function tap.packet(pinfo,tvb,tapinfo) ... end Note: tapinfo is a table of info based on the Listener's type, or nil.
A function that will be called once every few seconds to redraw the gui objects; in tshark this funtion is called only at the very end of the capture file. function tap.draw() ... end