berconpy.ClientMessagePacket¶
- class berconpy.ClientMessagePacket(sequence)¶
The packet sent to acknowledge a given server message.
- Parameters:
sequence (
int) – The sequence number of the message being acknowledged.
Methods
assert_checksum(checksum)Asserts that the packet has a given checksum.
from_bytes(data[, from_client])Constructs a packet from the given data.
Attributes
datachecksumThe CRC32 checksum included in the header.
The zero-based index of the packet associated with a COMMAND server response.
A boolean indicating if the server authenticated the client.
The message that was sent to the client/server.
The sequence number of the COMMAND or MESSAGE packet.
The total number of packets associated with a COMMAND server response.
typeThe packet's type defined in the protocol.
- property index: None¶
The zero-based index of the packet associated with a COMMAND server response.
If a sub-header is not provided with the response, this defaults to 0.
- property message: None¶
The message that was sent to the client/server.
This will always be an ASCII-compatible string.
For LOGIN, this would be the password sent to the server. For COMMAND, this would be the command string sent to the server. For MESSAGE, this would be the message sent to the client.