about summary refs log tree commit diff
path: root/src/engine/protocol.h
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2007-12-15 10:24:49 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2007-12-15 10:24:49 +0000
commita2566b3ebd93e0bbc55a920a7be08054a9377f11 (patch)
tree44a4612805d894168fe4b3b4c065fccc1a1686e9 /src/engine/protocol.h
parentac9873056aa1fe529b098f19ff31e9ffa0e016a2 (diff)
downloadzcatch-a2566b3ebd93e0bbc55a920a7be08054a9377f11.tar.gz
zcatch-a2566b3ebd93e0bbc55a920a7be08054a9377f11.zip
cleaned up code structure a bit
Diffstat (limited to 'src/engine/protocol.h')
-rw-r--r--src/engine/protocol.h60
1 files changed, 0 insertions, 60 deletions
diff --git a/src/engine/protocol.h b/src/engine/protocol.h
deleted file mode 100644
index e85ecf9f..00000000
--- a/src/engine/protocol.h
+++ /dev/null
@@ -1,60 +0,0 @@
-/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
-#include "system.h"
-
-/*
-	Connection diagram - How the initilization works.
-	
-	Client -> INFO -> Server
-		Contains version info, name, and some other info.
-		
-	Client <- MAP <- Server
-		Contains current map.
-	
-	Client -> READY -> Server
-		The client has loaded the map and is ready to go,
-		but the mod needs to send it's information aswell.
-		modc_connected is called on the client and
-		mods_connected is called on the server.
-		The client should call client_entergame when the
-		mod has done it's initilization.
-		
-	Client -> ENTERGAME -> Server
-		Tells the server to start sending snapshots.
-		client_entergame and server_client_enter is called.
-*/
-
-
-enum
-{
-	NETMSG_NULL=0,
-	
-	/* the first thing sent by the client
-	contains the version info for the client */
-	NETMSG_INFO=1,
-	
-	/* sent by server */
-	NETMSG_MAP,
-	NETMSG_SNAP,
-	NETMSG_SNAPEMPTY,
-	NETMSG_SNAPSINGLE,
-	NETMSG_SNAPSMALL,
-	
-	/* sent by client */
-	NETMSG_READY,
-	NETMSG_ENTERGAME,
-	NETMSG_INPUT,
-	NETMSG_CMD,
-	
-	/* sent by both */
-	NETMSG_ERROR
-};
-
-
-/* this should be revised */
-enum
-{
-	MAX_NAME_LENGTH=32,
-	MAX_CLANNAME_LENGTH=32,
-	MAX_INPUT_SIZE=128,
-	MAX_SNAPSHOT_PACKSIZE=900
-};