Previous Topic: Socket Errors (Windows and UNIX Systems)Next Topic: Socket Error Codes Generated by UNIX-based Systems


Socket Error Codes Generated by Windows-based Systems

A list of Windows error codes, Windows internal labels, and their causes follows:

10004 WSAEINTR

This error is returned if a sockets function is interrupted while it is in progress.

10009 WSAEBADF

This error is returned if a sockets function is called with a bad file number or descriptor.

10013 WSAEACCES

Permission denied.

10014 WSAEFAULT

This error is returned if a sockets function is called with a bad address.

10022 WSAEINVAL

This error is returned if a sockets function is called with an invalid argument.

10024 WSAEMFILE

Too many files open.

10035 WSAEWOULDBLOCK

Resource temporarily unavailable.

10036 WSAEINPROGRESS

This error is returned if a sockets function is called while a blocking function is in progress.

10037 WSAEALREADY

This error is returned if a sockets function is called while a function is already in progress.

10038 WSAENOTSOCK

This error is returned is a sockets function is performed on a non-socket.

10039 WSAEDESTADDRREQ

Destination address required.

10040 WSAEMSGSIZE

Message too long.

10041 WSAEPROTOTYPE

Protocol type wrong for socket.

10042 WSAENOPROTOOPT

Protocol not available.

10043 WSAEPROTONOSUPPORT

Protocol not supported.

10044 WSAESOCKTNOSUPPORT

Socket type not supported.

10045 WSAEOPNOTSUPP

Operation not supported on socket.

10046 WSAEPFNOSUPPORT

Protocol family not supported.

10047 WSAEAFNOSUPPORT

Address family not supported.

10048 WSAEADDRINUSE

Address already in use.

10049 WSAEADDRNOTAVAIL

Cannot assign requested address.

10050 WSAENETDOWN

This error may be reported at any time if the sockets implementation detects an underlying failure. Generally used to mean that the network is down.

10051 WSAENETUNREACH

Network is unreachable.

10052 WSAENETRESET

Network dropped connection due to reset.

10053 WSAECONNABORTED

Software caused connection abort.

10054 WSAECONNRESET

Connection reset by peer.

10055 WSAENOBUFS

No buffer space available.

10056 WASEISCONN

Socket is already connected.

10057 WSAENOTCONN

Socket is not connected.

10058 WSAESHUTDOWN

Cannot send after socket shutdown.

10059 WSAETOOMANYREFS

Too many references: cannot splice

10060 WSAETIMEDOUT

Connection timed out.

10061 WSAECONNREFUSED

Connection refused.

10062 WSAELOOP

Symbolic link loop.

10063 WSAENAMETOOLONG

Path name is too long.

10064 WSAEHOSTDOWN

The host is down.

10065 WSAEHOSTUNREACH

No route to host.

10091 WSASYSNOTREADY

Unable to initialize the network subsystem. This may indicate a configuration error in the network subsystem.

10092 WSAVERNOTSUPPORTED

Unable to initialize the network subsystem. This may indicate a configuration error in the network subsystem.

10093 WSANOTINITIALIZED

Unable to use the network subsystem because it has not been successfully initialized.