Socket error codes

In 0.68, the socket error codes changed.

They changed from DC++’s error description to Windows’ own socket error code description.

What does this really mean then? It means that whenever you got (for instance) “Connection refused by target machine”, you now get “No connection could be made because the target computer actively refused it.” Or something similar translated into whatever language your operating system use. That is, if you have installed a Chinese Windows version, you’d get the message in Chinese.

All of the error codes can be viewed here.

Here’s a list of the (that I could find) error codes one could see before.

WSAEWOULDBLOCK: “Operation would block execution”
WSAEACCES: “Permission denied”
WSAEADDRINUSE: “Address already in use”
WSAEADDRNOTAVAIL: “Address not available”
WSAEALREADY: “Non-blocking operation still in progress”
WSAECONNREFUSED: “Connection refused by target machine”
WSAETIMEDOUT: “Connection timeout”
WSAEHOSTUNREACH: “Host unreachable”
WSAESHUTDOWN: “Socket has been shut down”
WSAECONNABORTED: “Connection closed”
WSAECONNRESET: “Connection reset by server”
WSAENOTSOCK: “Not a socket”
WSAENOTCONN: “Not connected”
WSAENETUNREACH: “Network unreachable (are you connected to the internet?)”

(Yes, they aren’t aligned. I didn’t feel like making it prettier.)

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: