Package killerbee :: Module daintree :: Class DainTreeReader
[hide private]
[frames] | no frames]

Class DainTreeReader

source code

Instance Methods [hide private]
None. An exception is raised if the capture file is not in Daintree SNA format.
__init__(self, savefile)
Reads from a specified Daintree SNA packet capture file.
source code
None
close(self)
Close the output packet capture.
source code
List
pnext(self)
Retrieves the next packet from the capture file.
source code
Method Details [hide private]

__init__(self, savefile)
(Constructor)

source code 

Reads from a specified Daintree SNA packet capture file.

Parameters:
  • savefile (String) - Daintree SNA packet capture filename to read from.
Returns: None. An exception is raised if the capture file is not in Daintree SNA format.

pnext(self)

source code 

Retrieves the next packet from the capture file. Returns a list of [Hdr, packet] where Hdr is a list of [timestamp, snaplen, plen] and packet is a string of the payload content. Returns None at the end of the packet capture.

Returns: List