2016-01-20 23:24:37 +00:00
|
|
|
class MasterProtocol:
|
2023-12-26 17:26:38 +00:00
|
|
|
|
2016-01-20 23:24:37 +00:00
|
|
|
# Client To Master
|
2023-12-26 17:26:38 +00:00
|
|
|
clientQuery = '1'
|
2022-12-07 20:21:49 +00:00
|
|
|
|
2016-01-20 23:24:37 +00:00
|
|
|
# Server To Master
|
2023-12-26 17:26:38 +00:00
|
|
|
challengeRequest = 'q'
|
|
|
|
addServer = '0'
|
|
|
|
removeServer = 'b'
|
2022-12-07 20:21:49 +00:00
|
|
|
|
2016-01-20 23:24:37 +00:00
|
|
|
# Master To Client
|
|
|
|
queryPacketHeader = b'\xff\xff\xff\xff\x66\x0a'
|
2022-12-07 20:21:49 +00:00
|
|
|
|
2016-01-20 23:24:37 +00:00
|
|
|
# Master To Server
|
|
|
|
challengePacketHeader = b'\xff\xff\xff\xff\x73\x0a'
|