From b939d3822882c5061f5e3ddfb3fc3b13b116fe24 Mon Sep 17 00:00:00 2001 From: oy Date: Thu, 17 Mar 2011 17:41:57 +0100 Subject: made the client check for valid address on connectionless packets from master/version server --- src/engine/client/client.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/engine/client/client.h') 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; } -- cgit 1.4.1