diff options
| author | m!nus <m1nus@online.de> | 2011-04-02 01:56:16 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-04-02 17:35:50 +0200 |
| commit | 3ebdc2a4ceb87c0787e9e5f31985879e4bd9a7f1 (patch) | |
| tree | a17a7a71b4f1d5177ac7c9302f9e6c04f7da5589 /src/mastersrv/mastersrv.h | |
| parent | 4adad07ad807d09b5f0fa94ec47d3cb9108e86c0 (diff) | |
| download | zcatch-3ebdc2a4ceb87c0787e9e5f31985879e4bd9a7f1.tar.gz zcatch-3ebdc2a4ceb87c0787e9e5f31985879e4bd9a7f1.zip | |
added downward compatibility to mastersrv for 0.5 (and earlier)
Diffstat (limited to 'src/mastersrv/mastersrv.h')
| -rw-r--r-- | src/mastersrv/mastersrv.h | 17 |
1 files changed, 17 insertions, 0 deletions
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 |