diff options
Diffstat (limited to '')
-rw-r--r-- | source/cSocket.h | 8 |
1 files changed, 4 insertions, 4 deletions
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;
|