mirror of
https://github.com/de2tla2f/pymaster.git
synced 2024-11-23 19:41:27 +00:00
protocol: declare header sequences as bytes
This commit is contained in:
parent
c75a900443
commit
75487e36e8
|
@ -1,12 +1,11 @@
|
|||
class MasterProtocol:
|
||||
|
||||
# Client To Master
|
||||
clientQuery = '1'
|
||||
clientQuery = b'1'
|
||||
|
||||
# Server To Master
|
||||
challengeRequest = 'q'
|
||||
addServer = '0'
|
||||
removeServer = 'b'
|
||||
challengeRequest = b'q\xFF'
|
||||
addServer = b'0\n'
|
||||
removeServer = b'\x62\x0A'
|
||||
|
||||
# Master To Client
|
||||
queryPacketHeader = b'\xff\xff\xff\xff\x66\x0a'
|
||||
|
|
Loading…
Reference in a new issue