berconpy.ClientPacket¶
- class berconpy.ClientPacket(data)¶
The base class for packets sent by the client.
The subclasses of this packet are:
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.
indexThe zero-based index of the packet associated with a COMMAND server response.
login_successA boolean indicating if the server authenticated the client.
messageThe message that was sent to the client/server.
sequenceThe sequence number of the COMMAND or MESSAGE packet.
totalThe total number of packets associated with a COMMAND server response.
typeThe packet's type defined in the protocol.