Windows Sockets Error Codes
WINSOCK Errors are generated when a script is running on a WDM Agent. In such a case, the WDM Agent either had trouble obtaining or sending a file as part of the script. The following is a list of possible errors (as reported by Microsoft):
Note: Errors are listed in alphabetical order by error macro. Some error codes defined in Winsock2.h are not returned from any function-these are not included in this list:
- WSAEINTR 10004 - Interrupted function call. A blocking operation was interrupted by a call.
- WSAEACCES 10013 - Permission denied. An attempt was made to access a socket in a forbidden way.
- WSAEFAULT 10014 - Bad address. The system detected an invalid pointer address.
- WSAEINVAL 10022 - Invalid argument. Some invalid argument was supplied.
- WSAEMFILE 10024 - Too many open files. Too many open sockets.
- WSAEWOULDBLOCK 10035 - Resource temporarily unavailable. Socket operation not available at this time.
- WSAEINPROGRESS 10036 - Operation now in progress. A blocking operation is currently executing.
- WSAEALREADY 10037 - Operation already in progress. An operation was attempted on a non-blocking socket with an operation already in progress.
- WSAENOTSOCK 10038 - Socket operation on non-socket. An operation was attempted on something that is not a socket.
- WSAEDESTADDRREQ 10039 - Destination address required. A required address was omitted from an operation.
- WSAEMSGSIZE 10040 - Message too long. A message sent on a datagram socket was larger than the internal message buffer.
- WSAEPROTOTYPE 10041 - Protocol wrong type for socket. A protocol was specified in the socket function call that is not supported.
- WSAENOPROTOOPT 10042 - Bad protocol option. An unknown, invalid or unsupported call was made.
- WSAEPROTONOSUPPORT 10043 - Protocol not supported. The requested protocol has not been configured into the system.
- WSAESOCKTNOSUPPORT 10044 - Socket type not supported. The support for the specified socket type does not exist.
- WSAEOPNOTSUPP 10045 - Operation not supported. The attempted operation is not supported.
- WSAEPFNOSUPPORT 10046 - Protocol family not supported. The protocol family has not been configured into the system or no implementation for it exists.
- WSAEAFNOSUPPORT 10047 - Address family not supported. An address incompatible with the requested protocol was used.
- WSAEADDRINUSE 10048 - Address already in use. An application attempts to bind a socket to an IP address/port that has already been used for an existing socket.
- WSAEADDRNOTAVAIL 10049 - Cannot assign requested address. The requested address is not valid.
- WSAENETDOWN 10050 - Network is down. A socket operation encountered a dead network.
- WSAENETUNREACH 10051 - Network is unreachable. A socket operation was attempted to an unreachable network.
- WSAENETRESET 10052 - Network dropped connection. The connection has been broken due to keep-alive activity detecting a failure while the operation was in progress.
- WSAECONNABORTED 10053 - Software caused connection abort. A connection was aborted by the software in your machine, possibly due to a TCP/IP configuration error, data transmission time-out or protocol error.
- WSAECONNRESET 10054 - Connection reset by peer. An existing connection was forcibly closed by the remote host.
- WSAENOBUFS 10055 - No buffer space available. An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full.
- WSAEISCONN 10056 - Socket is already connected. A connect request was made on an already-connected socket.
- WSAENOTCONN 10057 - Socket is not connected. A request to send or receive data was disallowed because the socket is not connected.
- WSAESHUTDOWN 10058 - Cannot send after socket shutdown. A request to send or receive data was disallowed because the socket had already been shut down.
- WSAETIMEDOUT 10060 - Connection timed out. A connection did not properly respond after a period of time.
- WSAECONNREFUSED 10061 - Connection refused. No connection could be made because the target machine actively refused it.
- WSAEHOSTDOWN 10064 - Host is down. A socket operation failed because the destination host is down.
- WSAEHOSTUNREACH 10065 - No route to host. A socket operation was attempted to an unreachable host.
- WSAEPROCLIM 10067 - Too many processes. A Windows Sockets implementation may have a limit on the number of applications that can use it simultaneously.
- WSASYSNOTREADY 10091 - Network subsystem is unavailable. This error is returned if the sockets implementation cannot function because the system is currently unavailable.
- WSAVERNOTSUPPORTED 10092 - Winsock.dll version out of range. The current Windows Sockets implementation does not support the Windows Sockets specification version requested.
- WSANOTINITIALISED 10093 - Startup failed. The application socket startup failed.
- WSAEDISCON 10101 - Graceful shutdown in progress. Returned to indicate that the remote party has initiated a graceful shutdown.
- WSATYPE_NOT_FOUND 10109 - Class type not found. The specified class was not found.
- WSAHOST_NOT_FOUND 11001 - Host not found. No such host is known.
- WSATRY_AGAIN 11002 - Non-authoritative host not found. A temporary error during host name resolution and means that the local server did not receive a response from an authoritative server.
- WSANO_RECOVERY 11003 - This is a nonrecoverable error. A nonrecoverable error occurred during a database lookup.
- WSANO_DATA 11004 - Valid name, no data record of requested type. The requested name is valid and was found in the database, but does not have the correct associated data being resolved for it.
- ERROR_INTERNET_TIMEOUT 12002 - Internet time-out. The request has timed out.