Package lacewing :: Module packet :: Class Packet
[frames] | no frames]

Class Packet

source code

            object --+    
                     |    
baseloader._BaseLoader --+
                         |
                        Packet

The base packet.

Instance Methods
 
initialize(self)
Initializer for this loader
source code
 
read(self, data)
Load the specified data with the given settings.
source code
 
generate(self)
Generates the binary representation of the packet.
source code

Inherited from baseloader._BaseLoader: __init__, new

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables
  loader = None
The loader that this packet contains
  maxSize = 65535
The max size of a packet.
  settings
Settings for this packet.
Properties

Inherited from object: __class__

Method Details

initialize(self)

source code 

Initializer for this loader

Overrides: baseloader._BaseLoader.initialize
(inherited documentation)

read(self, data)

source code 

Load the specified data with the given settings.

Parameters:
  • data (buffer or str)
Overrides: baseloader._BaseLoader.read

generate(self)

source code 

Generates the binary representation of the packet.

Overrides: baseloader._BaseLoader.generate