2007-11-25 19:42:40 +00:00
|
|
|
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
|
2007-12-03 20:58:46 +00:00
|
|
|
static const int MASTERSERVER_PORT = 8300;
|
2007-07-21 18:07:27 +00:00
|
|
|
|
2007-08-22 07:52:33 +00:00
|
|
|
enum {
|
2007-10-06 17:01:06 +00:00
|
|
|
MAX_SERVERS = 200
|
2007-08-22 07:52:33 +00:00
|
|
|
};
|
2007-07-21 18:07:27 +00:00
|
|
|
|
2008-08-31 19:29:09 +00:00
|
|
|
typedef struct MASTERSRV_ADDR
|
|
|
|
{
|
|
|
|
unsigned char ip[4];
|
|
|
|
unsigned char port[2];
|
|
|
|
} MASTERSRV_ADDR;
|
|
|
|
|
2007-07-21 18:07:27 +00:00
|
|
|
static const unsigned char SERVERBROWSE_HEARTBEAT[] = {255, 255, 255, 255, 'b', 'e', 'a', 't'};
|
2007-07-21 21:28:56 +00:00
|
|
|
|
2007-07-21 18:07:27 +00:00
|
|
|
static const unsigned char SERVERBROWSE_GETLIST[] = {255, 255, 255, 255, 'r', 'e', 'q', 't'};
|
|
|
|
static const unsigned char SERVERBROWSE_LIST[] = {255, 255, 255, 255, 'l', 'i', 's', 't'};
|
2007-07-21 21:28:56 +00:00
|
|
|
|
2008-02-10 21:54:52 +00:00
|
|
|
static const unsigned char SERVERBROWSE_GETCOUNT[] = {255, 255, 255, 255, 'c', 'o', 'u', 'n'};
|
|
|
|
static const unsigned char SERVERBROWSE_COUNT[] = {255, 255, 255, 255, 's', 'i', 'z', 'e'};
|
|
|
|
|
2008-09-03 20:03:01 +00:00
|
|
|
static const unsigned char SERVERBROWSE_GETINFO[] = {255, 255, 255, 255, 'g', 'i', 'e', '2'};
|
|
|
|
static const unsigned char SERVERBROWSE_INFO[] = {255, 255, 255, 255, 'i', 'n', 'f', '2'};
|
2008-01-20 15:19:33 +00:00
|
|
|
|
2007-07-21 21:28:56 +00:00
|
|
|
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'};
|