protocol: declare header sequences as bytes

This commit is contained in:
a1batross 2022-12-07 21:21:49 +01:00
parent c75a900443
commit 75487e36e8

View File

@ -1,12 +1,11 @@
class MasterProtocol: class MasterProtocol:
# Client To Master # Client To Master
clientQuery = '1' clientQuery = b'1'
# Server To Master # Server To Master
challengeRequest = 'q' challengeRequest = b'q\xFF'
addServer = '0' addServer = b'0\n'
removeServer = 'b' removeServer = b'\x62\x0A'
# Master To Client # Master To Client
queryPacketHeader = b'\xff\xff\xff\xff\x66\x0a' queryPacketHeader = b'\xff\xff\xff\xff\x66\x0a'