Package lacewing :: Package packetloaders :: Module response :: Class Response
[frames] | no frames]

Class Response

source code

            object --+    
                     |    
baseloader._BaseLoader --+
                         |
                        Response

The Response packet is sent from the server to reply to an earlier request by the client. It might have been either denied or accepted.

Use the methods to manipulate the properties (if available).

Instance Methods
 
read(self, data)
Parses 'data' and sets the properties of the packetloader.
source code
str
getReason(self)
Get the server deny reason.
source code
 
setReason(self, reason)
Set the server deny reason.
source code
 
getResponse(self)
Returns the response as string.
source code
 
isDenial(self)
Returns False if the response is a denial
source code
 
setResponse(self, response)
Set the response from string.
source code
 
generate(self)
Generate the raw representation of the packetloader.
source code

Inherited from baseloader._BaseLoader: __init__, initialize, new

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

Class Variables
  response = None
hash(x)
  denyReason = None
hash(x)
  playerId = None
hash(x)
  extensions = None
hash(x)
  packetId = 1
Instance Variables
  channelId = None
The channel ID of the granted channel.
  channelName = None
The channel name of the granted channel.
  playerName = None
The selected client name.
Properties

Inherited from object: __class__

Method Details

read(self, data)

source code 

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

Overrides: baseloader._BaseLoader.read
(inherited documentation)

getReason(self)

source code 

Get the server deny reason.

Returns: str
See denyReason.

setReason(self, reason)

source code 

Set the server deny reason.

Parameters:

getResponse(self)

source code 

Returns the response as string.

Returns:
See RESPONSES.

setResponse(self, response)

source code 

Set the response from string.

Parameters:
  • response - See RESPONSES

generate(self)

source code 

Generate the raw representation of the packetloader.

Overrides: baseloader._BaseLoader.generate
(inherited documentation)