1
0

Extracted cSocket::GetErrorString into GetOSErrorString

This commit is contained in:
Tycho
2014-01-25 05:51:03 -08:00
parent 7419579140
commit 59b8205f02
6 changed files with 62 additions and 59 deletions

View File

@@ -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;
};
};