about summary refs log tree commit diff
path: root/src/mastersrv/mastersrv.h
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2007-07-21 18:07:27 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2007-07-21 18:07:27 +0000
commit9e4aea97bdb5a903150df57f8d546733ce4b4db2 (patch)
tree7e18776bd7ace981895bca01ac753c9c289a71a5 /src/mastersrv/mastersrv.h
parentf0e8502050ce27b9cef72fa385619d13faa35c27 (diff)
downloadzcatch-9e4aea97bdb5a903150df57f8d546733ce4b4db2.tar.gz
zcatch-9e4aea97bdb5a903150df57f8d546733ce4b4db2.zip
lots of cool new features :D new master server
Diffstat (limited to 'src/mastersrv/mastersrv.h')
-rw-r--r--src/mastersrv/mastersrv.h19
1 files changed, 19 insertions, 0 deletions
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'};