From dca87cd2145d51ffca4212c2ab47a44c20c2ad26 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Thu, 2 Feb 2012 16:13:49 +0000 Subject: Socket-related assert fixes git-svn-id: http://mc-server.googlecode.com/svn/trunk@227 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cSocket.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/cSocket.h') diff --git a/source/cSocket.h b/source/cSocket.h index 395815389..5f373edac 100644 --- a/source/cSocket.h +++ b/source/cSocket.h @@ -10,7 +10,7 @@ class cSocket typedef SOCKET xSocket; #else typedef int xSocket; - static const int INVALID_SOCKET = 0; + static const int INVALID_SOCKET = -1; #endif public: @@ -18,7 +18,7 @@ public: cSocket(xSocket a_Socket); ~cSocket(); - bool IsValid(void) const {return (m_Socket != INVALID_SOCKET); } + bool IsValid(void) const; void CloseSocket(); operator const xSocket() const; -- cgit v1.2.3