summaryrefslogtreecommitdiffstats
path: root/source/cSocket.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-06 12:53:01 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-06 12:53:01 +0100
commitf2343ad81b9f8f38452f45e70963bca93a1c03e4 (patch)
tree5fd57d44b61b5a86f246e99a6fe17c5d05fcae01 /source/cSocket.h
parentNow showing proper error messages when sockets fail :) (diff)
downloadcuberite-f2343ad81b9f8f38452f45e70963bca93a1c03e4.tar
cuberite-f2343ad81b9f8f38452f45e70963bca93a1c03e4.tar.gz
cuberite-f2343ad81b9f8f38452f45e70963bca93a1c03e4.tar.bz2
cuberite-f2343ad81b9f8f38452f45e70963bca93a1c03e4.tar.lz
cuberite-f2343ad81b9f8f38452f45e70963bca93a1c03e4.tar.xz
cuberite-f2343ad81b9f8f38452f45e70963bca93a1c03e4.tar.zst
cuberite-f2343ad81b9f8f38452f45e70963bca93a1c03e4.zip
Diffstat (limited to 'source/cSocket.h')
-rw-r--r--source/cSocket.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/cSocket.h b/source/cSocket.h
index 98fc5fdc4..81408c918 100644
--- a/source/cSocket.h
+++ b/source/cSocket.h
@@ -29,7 +29,12 @@ public:
static int WSAStartup();
static AString GetErrorString( int a_ErrNo );
- static int GetLastError();
+ static int GetLastError();
+ static AString GetLastErrorString(void)
+ {
+ return GetErrorString(GetLastError());
+ }
+
static cSocket CreateSocket();
inline static bool IsSocketError( int a_ReturnedValue )