Socket-related assert fixes
git-svn-id: http://mc-server.googlecode.com/svn/trunk@227 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user