From ab95abb6bde0073ebb869624332adf028aac8dd7 Mon Sep 17 00:00:00 2001 From: faketruth Date: Sun, 5 Feb 2012 16:24:16 +0000 Subject: Now showing proper error messages when sockets fail :) Crossplatform GetLastError function in cSocket git-svn-id: http://mc-server.googlecode.com/svn/trunk@234 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cSocket.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/cSocket.h') diff --git a/source/cSocket.h b/source/cSocket.h index 5f373edac..98fc5fdc4 100644 --- a/source/cSocket.h +++ b/source/cSocket.h @@ -28,7 +28,8 @@ public: int SetReuseAddress(); static int WSAStartup(); - static const char* GetLastErrorString(); + static AString GetErrorString( int a_ErrNo ); + static int GetLastError(); static cSocket CreateSocket(); inline static bool IsSocketError( int a_ReturnedValue ) -- cgit v1.2.3