Package lacewing :: Package packetloaders :: Module channelpacket :: Class ChannelPacket
[frames] | no frames]

Class ChannelPacket

source code

            object --+    
                     |    
baseloader._BaseLoader --+
                         |
                        ChannelPacket

This is sent by the client if it wants to join a channel by name, or to leave a channel by ID.

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
  packetId = 10
Instance Variables
  channel = None
The name of the channel to join.
  channelId = None
The ID of the channel to leave.
  flags = None
Flags to tell if we're leaving or to tell if the channel should be hidden
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)