about summary refs log tree commit diff
path: root/src/mastersrv/mastersrv.h
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2010-05-29 07:25:38 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2010-05-29 07:25:38 +0000
commit72c06a258940696093f255fb1061beb58e1cdd0b (patch)
tree36b9a7712eec2d4f07837eab9c38ef1c5af85319 /src/mastersrv/mastersrv.h
parente56feb597bc743677633432f77513b02907fd169 (diff)
downloadzcatch-72c06a258940696093f255fb1061beb58e1cdd0b.tar.gz
zcatch-72c06a258940696093f255fb1061beb58e1cdd0b.zip
copied refactor to trunk
Diffstat (limited to 'src/mastersrv/mastersrv.h')
-rw-r--r--src/mastersrv/mastersrv.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mastersrv/mastersrv.h b/src/mastersrv/mastersrv.h
index cfac2e71..50fea646 100644
--- a/src/mastersrv/mastersrv.h
+++ b/src/mastersrv/mastersrv.h
@@ -1,10 +1,11 @@
-/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
+#ifndef MASTERSRV_MASTERSRV_H
+#define MASTERSRV_MASTERSRV_H
 static const int MASTERSERVER_PORT = 8300;
 
 typedef struct MASTERSRV_ADDR
 {
-	unsigned char ip[4];
-	unsigned char port[2];
+	unsigned char m_aIp[4];
+	unsigned char m_aPort[2];
 } MASTERSRV_ADDR;
 
 static const unsigned char SERVERBROWSE_HEARTBEAT[] = {255, 255, 255, 255, 'b', 'e', 'a', 't'};
@@ -25,3 +26,4 @@ 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'};
+#endif