18 return WSAGetLastError();
22 char *error_message = NULL;
24 FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
27 MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
35 LocalFree(error_message);
char * GetErrorMessage(int error_number)
Returns a human readable message for the given error number.
This file includes the prototypes for error resolution functions like strerror_r or WSAGetLastError...
void FreeErrorMessage(char *error_message)
Frees the space of the error message generated by GetErrorMessage(int)
int GetSocketErrorNumber()
Gets the error number or equivalent.