all other functions: retry the operation again later since it cannot be satisfied at this time. Check the destination address itself; is it the one you wanted to go to? WSAGetLastError() and WSAIsBlocking() cannot fail. However, because a BSD socket is equivalent to a file handle, some Windows Sockets platforms provide some file handle and socket equivalency. http://nbxcorp.com/socket-error/winsock-2-error.html
WinSock functions: accept(), bind(), closesocket(), connect(), gethostbyaddr(), gethostbyname(), gethostname(), getpeername(), getprotobyname(), getprotobynumber(), getservbyname(), getservbyport(), getsockname(), getsockopt(), ioctlsocket(), listen(), recv(), recvfrom(), select(), send(), sendto(), setsockopt(), shutdown(), socket(), WSAAsyncGetHostByAddr(), WSAAsyncGetHostByName(), WSAAsyncGetProtoByName(), WSAAsyncGetProtoByNumber(), WSAAsyncGetServByName(), Not implemented: name server does not perform specified operation. Most of the text comes from the output from the "man errno" command on Unix. WinSock description: Same as Berkeley. https://msdn.microsoft.com/en-us/library/windows/desktop/ms740668(v=vs.85).aspx
However, there's little distinction between WSAEALREADY and WSAEINVAL since a WinSock DLL cannot tell the difference between an asynchronous operation that has been cancelled and one that was never valid. WinSock functions:
WinSock functions: socket() See also: WSAESOCKTNOSUPPORT WSAEPROTOTYPE (10041) Protocol wrong type for socket. This usually means the local software knows no route to reach the remote host. WSAVERNOTSUPPORTED (10092) WINSOCK DLL Version out of range The current Winsock implementation does not support the Windows Sockets specification version requested by the application. Socket Error 11004 However, some WinSocks fail with WSAEINVAL you call connect.
If the hostname resolution uses a local hosttable, it's possible you resolved to an old obsolete address. Winsock Error 10053 The explanation is simple and obvious: in order to connect to or send to a destination address, you need to provide the destination address. 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 https://msdn.microsoft.com/en-us/library/ee493863.aspx Error Definition Errno WSAEWOULDBLOCK 10035 WSAEINPROGRESS 10036 WSAEALREADY 10037 WSAENOTSOCK 10038 WSAEDESTADDRREQ 10039 WSAEMSGSIZE 10040 WSAEPROTOTYPE 10041 WSAENOPROTOOPT 10042 WSAEPROTONOSUPPORT 10043 WSAESOCKTNOSUPPORT 10044 WSAEOPNOTSUPP 10045 WSAEPFNOSUPPORT 10046 WSAEAFNOSUPPORT 10047 WSAEADDRINUSE 10048
This could be due to an out of memory error or to an internal QoS provider error. Socket Error 10061 Connection Refused WinSock description: a quick comparison to the Berkeley counterpart, and a long description of WinSock error. WSAENOBUFS 10055 No buffer space available. WSAENOPROTOOPT 10042 Bad protocol option.
Note that this error is returned by the operating system, so the error number may change in future releases of Windows. For protocol and services resolution, the name or number was not found in the respective database. What Is A Socket Error It would also timeout if a (FIN)ish TCP packet is not ACK'd (and even if the FIN is ACK'd, it will eventually timeout if a FIN is not returned). Socket Error Codes Linux The missing functions are getprotobyname(), getprotobynumber(), getservbyname(), and getservbyport().
WSAEINPROGRESS 10036 Operation now in progress. Check This Out Berkeley description: The system detected an invalid address in attempting to use an argument of a call. A server has attempted to handle an NFS request by generating a request to another NFS server, which is not allowed.WSAHOST_NOT_FOUND (11001) Host not found The name you have used is A socket operation encountered a dead network. Socket Error 10054 Connection Reset By Peer
User suggestions: Chances are the network subsystem is misconfigured or inactive. 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. This error may be reported at any time if the Windows Sockets implementation detects an underlying failure. http://nbxcorp.com/socket-error/winsock-error-997.html User suggestions: Some network systems have commands to report statistics.
WinSock description: Same as Berkeley. Socket Error 11001 This may be a reply to any command if the service knows it must shut down. 425Can't open data connection. 426Connection closed; transfer aborted. 450Requested file action not taken. For information, see the Handling Winsock Errors topic.
The attempted operation is not supported for the type of object referenced. User suggestions: It may indicate that there are too many WinSock applications running simultaneously, but this is unlikely since most network systems have many socket handles available. The application socket startup failed WSAEDISCON (10101) Graceful shutdown in progress. Winsock Error 10054 Fix As we pointed out earlier, your application should be ready to encounter any error at any time.
A blocking operation is currently executing. This error also could occur if an application opens and closes sockets often, but doesn't properly close the sockets (so it leaves them open, as 'orphans'). WinSock description: Same as Berkeley. http://nbxcorp.com/socket-error/winsock-ftp-error.html No such host is known.
The current Windows Sockets implementation does not support the Windows Sockets specification version requested WSANOTINITIALISED (10093) Startup failed. By calling shutdown() you do a partial close of a socket, which means you have discontinued sending. This is not a temporary error. However, because a BSD socket is equivalent to a file handle, some Windows Sockets platforms provide some file handle and socket equivalency.
WSAENOMORE 10102 No more results. Note that this error is returned by the operating system, so the error number may change in future releases of Windows. As you can see from the comprehensive list of WinSock functions, this error is the catch-all.
© Copyright 2017 nbxcorp.com. All rights reserved.