From 3ebdc2a4ceb87c0787e9e5f31985879e4bd9a7f1 Mon Sep 17 00:00:00 2001 From: m!nus Date: Sat, 2 Apr 2011 01:56:16 +0200 Subject: added downward compatibility to mastersrv for 0.5 (and earlier) --- src/mastersrv/mastersrv.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/mastersrv/mastersrv.h') diff --git a/src/mastersrv/mastersrv.h b/src/mastersrv/mastersrv.h index bbe2e8fb..48870819 100644 --- a/src/mastersrv/mastersrv.h +++ b/src/mastersrv/mastersrv.h @@ -26,4 +26,21 @@ static const unsigned char SERVERBROWSE_FWCHECK[] = {255, 255, 255, 255, 'f', 'w static const unsigned char SERVERBROWSE_FWRESPONSE[] = {255, 255, 255, 255, 'f', 'w', '!', '!'}; static const unsigned char SERVERBROWSE_FWOK[] = {255, 255, 255, 255, 'f', 'w', 'o', 'k'}; static const unsigned char SERVERBROWSE_FWERROR[] = {255, 255, 255, 255, 'f', 'w', 'e', 'r'}; + + +// packet headers for the 0.5 branch + +struct CMastersrvAddrLegacy +{ + unsigned char m_aIp[4]; + unsigned char m_aPort[2]; +}; + +static const unsigned char SERVERBROWSE_HEARTBEAT_LEGACY[] = {255, 255, 255, 255, 'b', 'e', 'a', 't'}; + +static const unsigned char SERVERBROWSE_GETLIST_LEGACY[] = {255, 255, 255, 255, 'r', 'e', 'q', 't'}; +static const unsigned char SERVERBROWSE_LIST_LEGACY[] = {255, 255, 255, 255, 'l', 'i', 's', 't'}; + +static const unsigned char SERVERBROWSE_GETCOUNT_LEGACY[] = {255, 255, 255, 255, 'c', 'o', 'u', 'n'}; +static const unsigned char SERVERBROWSE_COUNT_LEGACY[] = {255, 255, 255, 255, 's', 'i', 'z', 'e'}; #endif -- cgit 1.4.1