Package lacewing :: Package packetloaders :: Module handshake :: Class Welcome
[frames] | no frames]

Class Welcome

source code

            object --+    
                     |    
baseloader._BaseLoader --+
                         |
                        Welcome

This is a reply to the client connection request. It tells the client what settings are set at the server.

Use the methods to manipulate properties (if available).

Instance Methods
 
initialize(self)
Initializer for this loader
source code
 
getServerType(self)
Return the server type as a string.
source code
 
setServerType(self, serverType)
Set the type of this server from string.
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
  message = None
hash(x)
  serverType = None
hash(x)
  packetId = 0
Instance Variables
BitDict flags = None
The settings specified by the server
Properties

Inherited from object: __class__

Method Details

initialize(self)

source code 

Initializer for this loader

Overrides: baseloader._BaseLoader.initialize
(inherited documentation)

getServerType(self)

source code 

Return the server type as a string.

Returns:
See IMPLEMENTATION_TYPES.

setServerType(self, serverType)

source code 

Set the type of this server from string.

Parameters:
  • serverType - Server type as string, see IMPLEMENTATION_TYPES.

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)