about summary refs log tree commit diff
path: root/src/engine/client/client.h
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-03-17 17:41:57 +0100
committeroy <Tom_Adams@web.de>2011-03-17 17:41:57 +0100
commitb939d3822882c5061f5e3ddfb3fc3b13b116fe24 (patch)
tree0729cf0246d629861d3905ba76327e5bfab48857 /src/engine/client/client.h
parentb4bec5335960f78a0ad6ac6f0c491cb76375bd56 (diff)
downloadzcatch-b939d3822882c5061f5e3ddfb3fc3b13b116fe24.tar.gz
zcatch-b939d3822882c5061f5e3ddfb3fc3b13b116fe24.zip
made the client check for valid address on connectionless packets from master/version server
Diffstat (limited to 'src/engine/client/client.h')
-rw-r--r--src/engine/client/client.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/engine/client/client.h b/src/engine/client/client.h
index 2c0f5f86..e0cd17a2 100644
--- a/src/engine/client/client.h
+++ b/src/engine/client/client.h
@@ -185,8 +185,15 @@ class CClient : public IClient, public CDemoPlayer::IListner
 	int64 m_CurrentServerInfoRequestTime; // >= 0 should request, == -1 got info
 
 	// version info
-	struct
+	struct CVersionInfo
 	{
+		enum
+		{
+			STATE_INIT=0,
+			STATE_START,
+			STATE_READY,
+		};
+
 		int m_State;
 		class CHostLookup m_VersionServeraddr;
 	} m_VersionInfo;
@@ -266,7 +273,8 @@ public:
 
 	static int PlayerScoreComp(const void *a, const void *b);
 
-	void ProcessPacket(CNetChunk *pPacket);
+	void ProcessConnlessPacket(CNetChunk *pPacket);
+	void ProcessServerPacket(CNetChunk *pPacket);
 
 	virtual int MapDownloadAmount() { return m_MapdownloadAmount; }
 	virtual int MapDownloadTotalsize() { return m_MapdownloadTotalsize; }