summaryrefslogtreecommitdiffstats
path: root/source/cSocket.h
diff options
context:
space:
mode:
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 )