summaryrefslogtreecommitdiffstats
path: root/src/OSSupport/Socket.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-01-25 19:43:00 +0100
committerMattes D <github@xoft.cz>2014-01-25 19:43:00 +0100
commitc8be9b5b1aa152e61ca61870c0f95313571e1918 (patch)
tree93be710bd8884e526ff719b4302fd2eb4569b66c /src/OSSupport/Socket.h
parentComm logging is available in both Debug and Release modes. (diff)
parentSwitched cEvent to GetOSErrorString (diff)
downloadcuberite-c8be9b5b1aa152e61ca61870c0f95313571e1918.tar
cuberite-c8be9b5b1aa152e61ca61870c0f95313571e1918.tar.gz
cuberite-c8be9b5b1aa152e61ca61870c0f95313571e1918.tar.bz2
cuberite-c8be9b5b1aa152e61ca61870c0f95313571e1918.tar.lz
cuberite-c8be9b5b1aa152e61ca61870c0f95313571e1918.tar.xz
cuberite-c8be9b5b1aa152e61ca61870c0f95313571e1918.tar.zst
cuberite-c8be9b5b1aa152e61ca61870c0f95313571e1918.zip
Diffstat (limited to 'src/OSSupport/Socket.h')
-rw-r--r--src/OSSupport/Socket.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/OSSupport/Socket.h b/src/OSSupport/Socket.h
index 91c9ca5fd..4ca3d61f4 100644
--- a/src/OSSupport/Socket.h
+++ b/src/OSSupport/Socket.h
@@ -14,7 +14,7 @@
#endif
-
+#include "Errors.h"
class cSocket
@@ -57,11 +57,10 @@ public:
/// Initializes the network stack. Returns 0 on success, or another number as an error code.
static int WSAStartup(void);
- static AString GetErrorString(int a_ErrNo);
static int GetLastError();
static AString GetLastErrorString(void)
{
- return GetErrorString(GetLastError());
+ return GetOSErrorString(GetLastError());
}
/// Creates a new socket of the specified address family
@@ -115,4 +114,4 @@ public:
private:
xSocket m_Socket;
AString m_IPString;
-}; \ No newline at end of file
+};