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

Class DatagramPacket

source code

            object --+    
                     |    
baseloader._BaseLoader --+
                         |
                        DatagramPacket

This is used for unreliable packets. It is advised to use unreliable packets when the message does not *have* to arrive. Most UDP networks are pretty stable these days though.

Instance Methods
 
initialize(self)
Initializer for this loader
source code
 
read(self, data)
Parses 'data' and sets the properties of the packetloader.
source code
 
generate(self)
Generate the raw representation of the packetloader.
source code

Inherited from baseloader._BaseLoader: __init__, new

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

Class Variables
  loader = None
hash(x)
Instance Variables
  fromId = None
If specified, the packet will contain the ID of the sending client.
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 

Parses 'data' and sets the properties of the packetloader.

Overrides: baseloader._BaseLoader.read
(inherited documentation)

generate(self)

source code 

Generate the raw representation of the packetloader.

Overrides: baseloader._BaseLoader.generate
(inherited documentation)