From 9e4aea97bdb5a903150df57f8d546733ce4b4db2 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sat, 21 Jul 2007 18:07:27 +0000 Subject: lots of cool new features :D new master server --- src/mastersrv/mastersrv.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/mastersrv/mastersrv.h (limited to 'src/mastersrv/mastersrv.h') diff --git a/src/mastersrv/mastersrv.h b/src/mastersrv/mastersrv.h new file mode 100644 index 00000000..fd59808f --- /dev/null +++ b/src/mastersrv/mastersrv.h @@ -0,0 +1,19 @@ +static const char *MASTERSERVER_ADDRESS = "localhost"; +static const int MASTERSERVER_PORT = 8383; + +static const int MAX_SERVERS = 200; + +/*enum { + SERVERBROWSE_NULL=0, + SERVERBROWSE_HEARTBEAT, + SERVERBROWSE_GETLIST, + SERVERBROWSE_LIST, + SERVERBROWSE_GETINFO, + SERVERBROWSE_INFO, +};*/ + +static const unsigned char SERVERBROWSE_HEARTBEAT[] = {255, 255, 255, 255, 'b', 'e', 'a', 't'}; +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'}; +static const unsigned char SERVERBROWSE_GETINFO[] = {255, 255, 255, 255, 'g', 'i', 'e', 'f'}; +static const unsigned char SERVERBROWSE_INFO[] = {255, 255, 255, 255, 'i', 'n', 'f', 'o'}; -- cgit 1.4.1