Home > Socket Error > Win32 Socket Error Codes

Win32 Socket Error Codes


The WinSock description for this error is "the specified socket type is not supported in this address family," which qualifies the error condition a bit more than the Berkeley explanation does. Functionless Errors There are a total of fifty unique WinSock error values. For instance, this error will occur if you try to run two applications that have FTP servers that both try to accept connections on port 21 (the standard FTP port). WSATYPE_NOT_FOUND 10109 Class type not found. navigate to this website

WSA_QOS_EPOLICYOBJ 11025 Invalid QoS policy object. The specified socket parameter refers to a file, not a socket.WSAEDESTADDRREQ (10039) Destination address required A required address was omitted from an operation on a socket. Then, before trying to use it you may check if the socket is valid. Berkeley description: The system detected an invalid address in attempting to use an argument of a call. https://msdn.microsoft.com/en-us/library/windows/desktop/ms740668(v=vs.85).aspx

Socket Error Codes Linux

WinSock description: No equivalent in WinSock. The WSAEAFNOSUPPORT is the likely substitute error for this in WinSock, although its Berkeley meaning is slightly different. Error Description List (0) No error WSABASEERR (10000) No error Berkeley Description: no equivalent. send() & sendto(): socket not bound (for Dgram) or not yet connected (for Stream) The v1.1 specification also has a detailed description for the connect() function which says: "socket not already

Berkeley description: A connection was forcibly closed by a peer. For protocol and services resolution, the name or number was not found in the respective database. On a datastream socket, some applications use this error with a non-blocking socket calling connect() to detect when a connection attempt has completed, although this is not recommended since some WinSocks Socket Error 11004 Ping the remote host you were connected to.

Berkeley description: The protocol has not been configured into the system, or no implementation for it exists. The attempted operation is not supported for the type of object referenced. Berkeley description: A protocol was specified that does not support the semantics of the socket type requested. http://stackoverflow.com/questions/3948164/10038-socket-error Although some WinSock implementations might not issue other errors if a connection fails, so you can handle this error as you would others that indicate connection failure.

WSAENETRESET 10052 Network dropped connection on reset. Winsock Error 10061 WSAENOTSOCK 10038 Socket operation on nonsocket. WSANO_DATA (11004) Valid name, no data record of requested type Berkeley description: The requested name is valid, but does not have an Internet IP address at the name server. This error will be returned if an incorrect protocol is explicitly requested in the socket call, or if an address of the wrong family is used for a socket, e.g.

Socket Error 10054 Connection Reset By Peer

A database query failed because it was actively refused. http://www.elbiah.de/hamster/doc/ref/errwinsock.htm SO_DEBUG, SO_DONTROUTE, SO_RCVBUF, SO_SNDBUF, TCP_NODELAY: optional socket options. Socket Error Codes Linux In it's place, WinSock uses the error WSAENETUNREACH, exclusively. Socket Error 10053 This will verify that the destination network is functioning.

WSATRY_AGAIN 11002 Nonauthoritative host not found. useful reference A retry at some time later may be successful. Basically, you want to identify where the problem occurred. This has no network-relevant analog (although the "inode" reference could refer to a network file system entry). Socket Error 10049

WinSock functions: socket() See also: WSAEAFNOSUPPORT, WSAEPFNOSUPPORT WSAEREMOTE (10071) Too many levels of remote in path Berkeley description: Item is not local to the host. WSAEHOSTUNREACH (10065) No Route to Host A socket operation was attempted to an unreachable host. Berkeley description: A connect or send request failed because the connected party did not properly respond after a period of time. (The timeout period is dependent on the communication protocol.) WinSock my review here If you're on a serial connection, your local router is the IP address of the host you initially logged onto with SLIP or PPP.

The Windows Sockets errors are listed in alphabetical order below (they're cross-referenced in a list in numerical order further below). Winsock Error Windows 7 Berkeley description: This is a temporary condition and later calls to the same routine may complete normally (also known as EAGAIN error in Berkeley Software Distribution version 4.3) WinSock description: Same WSAEAFNOSUPPORT 10047 Address family not supported by protocol family.

WinSock functions: connect(), sendto(), FD_CONNECT Additional functions: It seems odd that the v1.1 specification doesn't ascribe this error to the function bind().

WSA_QOS_ADMISSION_FAILURE 11010 QoS admission error. For example, the error can occur when an attempt is made to read from a file that is not open, to open an existing read-only file for writing, or to open Too many links were encountered in translating a pathname. Winsock Error 10054 Fix In most cases, the default Winsock that comes with your OS is appropriate.

Apparently, the Windows Sockets specification left this out by oversight. For information, see the Handling Winsock Errors topic. User suggestions: This error indicates a shortage of resources on your system. get redirected here Be sure to say 'hello'. 5 March 2012 DirectX 9.0c Tutorial added In the first tutorial in our DirectX series, we explore how to create a render window, that will become