TCP/IP Winsock Return Codes

TCP/IP Winsock Return Codes
Return Code
Return-Code Mnemonic
Description
10004
WSAEINTR
The (blocking) call was canceled via WSACancelBlockingCall.
10013
WSAEACCES
The requested address is a broadcast address, but the appropriate flag was not set.
10014
WSAEFAULT
The function argument is incorrect.
10022
WSAEINVAL
Invalid argument or function sequence, or the socket has not been bound with bind.
10024
WSAEMFILE
No more file descriptors are available.
10035
WSAEWOULDBLOCK
The socket is marked as non-blocking and the operation would block.
10036
WSAEINPROGRESS
A blocking Windows sockets call is in progress.
10037
WSAEALREADY
The asynchronous routine being canceled has already completed.
10038
WSAENOTSOCK
The description is not a socket.
10039
WSAEDESTADDREQ
A destination address is required.
10040
WSAEMSGSIZE
The datagram was too large to fit into the specified buffer and was truncated.
10041
WSAEPROTOTYPE
The specified protocol is the wrong type for this socket.
10042
WSAENOPROTOOPT
The option is unknown or unsupported.
10043
WSAEPROTONOSUPPORT
The specified protocol is not supported.
10044
WSASOCKTNOSUPPORT
The specified socket type is not supported in this address family.
10045
WSAEOPNOTSUPP
The referenced socket is not the proper type.
10046
WSAEPFNOSUPPORT
The protocol family is not supported.
10047
WSAEAFNOSUPPORT
The specified address family is not supported.
10048
WSAEADDRINUSE
The specified address is already in use.
10049
WSAEADDRNOTAVAIL
The specified address is not available from the local machine.
10050
WSAENETDOWN
The Windows sockets implementation has detected that the network subsystem has failed.
10051
WSAENETUNREACH
The network cannot be reached from this host at this time.
10052
WSAENETRESET
The connection must be reset because the Windows sockets implementation dropped it.
10053
WSAECONNABORTED
The virtual circuit was terminated due to timeout or another failure.
10054
WSAECONNRESET
The virtual circuit was reset by the remote side.
10055
WSAENOBUFS
No buffer space is available.
10056
WSAEISCONN
The socket is already connected.
10057
WSAENOTCONN
The socket is not connected.
10058
WSAESHUTDOWN
The socket has been shut down.
10059
WSAETOOMANYREFS
Too many references: cannot splice.
10060
WSAETIMEDOUT
Attempt to connect timed out without establishing a connection.
10061
WSAECONNREFUSED
The attempt to connect was forcefully rejected.
10062
WSAELOOP
Too many levels of symbolic links.
10063
WSAENAMETOOLONG
The filename is too long.
10064
WSAEHOSTDOWN
The host is down.
10065
WSAEHOSTUNREACH
No route to host.
10066
WSAENOTEMPTY
The directory is not empty.
10067
WSAEPROCLIM
Too many processes.
10068
WSAEUSERS
Too many users.
10069
WSAEQUOT
The disk quota was exceeded.
10070
WSAESTALE
Stale NFS file handle.
10071
WSAEREMOTE
Too many levels of remote in path.
10091
WSAESYSNOTREADY
The underlying network subsystem is not ready for network communication.
10092
WSASVERNOTSUPPORTED
The version of Windows sockets API support requested is not provided by this particular Windows sockets implementation.
10093
WSANOTINITIALISED
A successful WSAStartup must occur before using this API.
11001
WSAHOST_NOT_FOUND
Authoritative Answer Host not found.
11002
WSATRY_AGAIN
Non-Authoritative Answer Host not found, or SERVERFAIL.
11003
WSANO_RECOVERY
Non-recoverable errors, FORMERR, REFUSED, NOTIMP.
11004
WSANO_DATA
Valid name, no data record of requested type.