Aaron Isotton

Wsaerror

Windows' socket library returns error codes with the function WSAGetLastError(). In a blatantly stupid move, Redmond decided that it is not necessary to supply human-readable descriptions of the errors to programs; the error codes are documented on MSDN, though. wsaerror gives you one single function, wsa_strerror() to map these codes to strings (taken from MSDN). Use it as you like.

License

You may use wsaerror under the terms of the MIT license. A copy of the license is contained in the source archive.

Documentation

You can view wsaerror's documentation online.

Download

Download wsaerror: wsaerror.tar.gz (3.3 KB).