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

Class DainTreeDumper

source code

Instance Methods [hide private]
None
__init__(self, savefile)
Writes to the specified file in Daintree SNA packet capture file format.
source code
 
pcap_dump(self, packet, ts_sec=None, ts_usec=None, orig_len=None)
This method is a wrapper around the pwrite() method for compatibility with the PcapDumper.pcap_dump method.
source code
None
pwrite(self, packet, channel=26, rssi=0)
Appends a new packet to the daintree capture file.
source code
None
close(self)
Close the input packet capture file.
source code
Method Details [hide private]

__init__(self, savefile)
(Constructor)

source code 

Writes to the specified file in Daintree SNA packet capture file format.

Parameters:
  • savefile (String) - Output Daintree SNA packet capture file.
Returns: None

pwrite(self, packet, channel=26, rssi=0)

source code 

Appends a new packet to the daintree capture file.

Parameters:
  • packet (String) - Packet contents
  • channel (Int) - Capture file reported channel number (optional, def=26)
  • rssi (Int) - Capture file repored RSSI (optional, def=0)
Returns: None