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

Class Hello

source code

            object --+    
                     |    
baseloader._BaseLoader --+
                         |
                        Hello

This is the initial connection request sent by the client. If it does not send this request within reasonable time, it is disconnected.

Use the methods to manipulate properties (if available).

Instance Methods
 
initialize(self)
Initializer for this loader
source code
 
read(self, data)
Parses 'data' and sets the properties of the packetloader.
source code
 
getClientType(self)
Return the client type as a string.
source code
 
setClientType(self, clientType)
Set the type of this client from string.
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
  clientType = None
hash(x)
  extensions = None
hash(x)
  packetId = 0
Instance Variables
  flags = None
Settings specified the client.
  protocolVersion = None
This is the protocol version that the client can communicate with.
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)

getClientType(self)

source code 

Return the client type as a string.

Returns:
See IMPLEMENTATION_TYPES.

setClientType(self, clientType)

source code 

Set the type of this client from string.

Parameters:
  • clientType - Client type as string, see IMPLEMENTATION_TYPES.

generate(self)

source code 

Generate the raw representation of the packetloader.

Overrides: baseloader._BaseLoader.generate
(inherited documentation)

Instance Variable Details

flags

Settings specified the client. It might, for example, not want to get messaged privately.
Value:
None

protocolVersion

This is the protocol version that the client can communicate with. The server might want to disconnect the client if it does not support this version.
Value:
None