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/cSocket.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/cSocket.h') diff --git a/source/cSocket.h b/source/cSocket.h index 43bb8ee09..44c3bea4b 100644 --- a/source/cSocket.h +++ b/source/cSocket.h @@ -10,15 +10,15 @@ class cSocket typedef SOCKET xSocket; #else typedef int xSocket; + static const int INVALID_SOCKET = 0; #endif public: - cSocket() : m_Socket( 0 ) {} - - cSocket( xSocket a_Socket ); + cSocket(void) : m_Socket(INVALID_SOCKET) {} + cSocket(xSocket a_Socket); ~cSocket(); - bool IsValid(); + bool IsValid(void) const {return (m_Socket != INVALID_SOCKET); } void CloseSocket(); operator const xSocket() const; -- cgit v1.2.3