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:
madmaxoft@gmail.com
2012-02-02 16:13:49 +00:00
parent d43a81bae0
commit dca87cd214
3 changed files with 30 additions and 6 deletions
+2 -2
View File
@@ -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;