From 48d30d6ab4657e00c0c861d67285256daeff1142 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Wed, 1 Feb 2012 22:38:03 +0000 Subject: Rewritten cAuthenticator to make use of the new cIsThread architecture - now authentication runs in a single separate thread for all clients; Global player-kicking function (cServer, cRoot); More char * -> AString conversion git-svn-id: http://mc-server.googlecode.com/svn/trunk@221 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cClientHandle.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/cClientHandle.h') diff --git a/source/cClientHandle.h b/source/cClientHandle.h index 0011903b1..4e7d8ce91 100644 --- a/source/cClientHandle.h +++ b/source/cClientHandle.h @@ -22,13 +22,14 @@ public: cClientHandle(const cSocket & a_Socket); ~cClientHandle(); - static const int VIEWDISTANCE = 13; // MUST be odd number or CRASH! + static const int VIEWDISTANCE = 15; // MUST be odd number or CRASH! static const int GENERATEDISTANCE = 2; // Server generates this many chunks AHEAD of player sight. const cSocket & GetSocket(); cPlayer* GetPlayer() { return m_Player; } // tolua_export - void Kick( const char* a_Reason ); //tolua_export + void Kick(const AString & a_Reason); //tolua_export + void Authenticate(void); // Called by cAuthenticator when the user passes authentication void AddPacket( cPacket * a_Packet ); void HandlePendingPackets(); @@ -51,9 +52,8 @@ public: static void SendThread( void *lpParam ); static void ReceiveThread( void *lpParam ); - static void AuthenticateThread( void* a_Param ); - const char* GetUsername(); + const AString & GetUsername(void) const; inline short GetPing() { return m_Ping; } private: -- cgit v1.2.3