summaryrefslogtreecommitdiffstats
path: root/src/OSSupport/Socket.h
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-01-25 14:51:03 +0100
committerTycho <work.tycho+git@gmail.com>2014-01-25 14:51:03 +0100
commit59b8205f02eb7bf2954acba56fd63f485a30ece5 (patch)
tree55baedf13c6c5cc132ca0f81d6c30c01a434be2d /src/OSSupport/Socket.h
parentSwitched cEvent to use strerror_r for error messages (diff)
downloadcuberite-59b8205f02eb7bf2954acba56fd63f485a30ece5.tar
cuberite-59b8205f02eb7bf2954acba56fd63f485a30ece5.tar.gz
cuberite-59b8205f02eb7bf2954acba56fd63f485a30ece5.tar.bz2
cuberite-59b8205f02eb7bf2954acba56fd63f485a30ece5.tar.lz
cuberite-59b8205f02eb7bf2954acba56fd63f485a30ece5.tar.xz
cuberite-59b8205f02eb7bf2954acba56fd63f485a30ece5.tar.zst
cuberite-59b8205f02eb7bf2954acba56fd63f485a30ece5.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
+};