Advertisement

WSAGetLastError()

Started by December 09, 2003 03:36 PM
1 comment, last by Leadorn 21 years, 2 months ago
WSAGetLastError() will give me an errorcode, but isn’t there a function that gives me a description of the errorcode?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/winsock/windows_sockets_error_codes_2.asp
Advertisement
use

int error;

error = WSAGetLastError();

if(error == WSAError)
{ printf("WSAError has been thrown!");

Enter the error you are checking for in place of "WSAError", if that error is thrown you will get the message you put in printf();

This topic is closed to new replies.

Advertisement