diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-11-22 15:10:21 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-11-22 15:10:21 +0100 |
commit | 8eab4f83b9d184f608682639411c69acf21a958b (patch) | |
tree | c9d1139f4116b28062c4ddcb5e6dfb71827bd316 /source/OSSupport/Socket.cpp | |
parent | Added "primaryserverversion" to the "help" list. (diff) | |
download | cuberite-8eab4f83b9d184f608682639411c69acf21a958b.tar cuberite-8eab4f83b9d184f608682639411c69acf21a958b.tar.gz cuberite-8eab4f83b9d184f608682639411c69acf21a958b.tar.bz2 cuberite-8eab4f83b9d184f608682639411c69acf21a958b.tar.lz cuberite-8eab4f83b9d184f608682639411c69acf21a958b.tar.xz cuberite-8eab4f83b9d184f608682639411c69acf21a958b.tar.zst cuberite-8eab4f83b9d184f608682639411c69acf21a958b.zip |
Diffstat (limited to 'source/OSSupport/Socket.cpp')
-rw-r--r-- | source/OSSupport/Socket.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/OSSupport/Socket.cpp b/source/OSSupport/Socket.cpp index d44a343e0..cad120fbe 100644 --- a/source/OSSupport/Socket.cpp +++ b/source/OSSupport/Socket.cpp @@ -51,12 +51,12 @@ cSocket::xSocket cSocket::GetSocket() const -bool cSocket::IsValid(void) const +bool cSocket::IsValidSocket(cSocket::xSocket a_Socket) { #ifdef _WIN32 - return (m_Socket != INVALID_SOCKET); + return (a_Socket != INVALID_SOCKET); #else // _WIN32 - return (m_Socket >= 0); + return (a_Socket >= 0); #endif // else _WIN32 } |