|
|
|
|
WSAEPFNOSUPPORT (10046) Has a slightly different meaning to
WSAEAFNOSUPPORT but is interchangeable in most cases, and all Windows Sockets functions that return one of these specify
WSAEAFNOSUPPORT WSAEAFNOSUPPORT (10047) 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. in sendto.
WSAEADDRINUSE (10048)
Address already in use
|
|
|
This error
occurs if an application attempts to bind a socket to an IP address/port
that has already been used for an existing socket, or a socket that
wasn't closed properly, or one that is still in the process of closing.
For server applications that need to bind multiple sockets to the same port number, consider using setsockopt (SO_REUSEADDR). Client applications usually need not call bind at all - connect will choose an unused port automatically.
WSAEADDRNOTAVAIL (10049)
WSAENETDOWN (10050)
Network is down
WSAENETUNREACH (10051)
Network is unreachable
WSAENETRESET (10052)
WSAECONNABORTED (10053)
WSAECONNRESET (10054)
WSAENOBUFS (10055)
No buffer space available.
WSAEISCONN (10056)
Socket is already connected Some implementations also return this error if sendto is called on a connected SOCK_DGRAM socket (For SOCK_STREAM sockets, the
"to" parameter in sendto is ignored), although other implementations treat this as a legal occurrence.
WSAENOTCONN (10057)
Socket is not connected Any other type of operation might also return this error - for example, setsockoptsetting SO_KEEPALIVE if the connection has been reset.
WSAESHUTDOWN (10058) By calling shutdown a partial close of a socket is requested, which is a signal that sending or receiving or both has been discontinued.
WSAETIMEDOUT (10060)
Connection timed out
WSAECONNREFUSED (10061)
Connection refused
WSAEHOSTDOWN (10064)
Host is down A socket operation encountered a dead host. Networking activity on the local host has not been initiated. These conditions are more likely to be indicated by the error WSAETIMEDOUT
WSAEHOSTUNREACH (10065)
No route to host
WSAEPROCLIM (10067)
Too many processes
WSASYSNOTREADY (10091) Users should check:
WSAVERNOTSUPPORTED (10092) Check that no old WINSOCK.DLL files are being accessed, or contact the stack vendor to see if an updated WINSOCK.DLL exists.
WSANOTINITIALISED (10093) The application may be accessing a socket which the current active task does not own (i.e. trying to share a socket between tasks), or WSACleanup has been called too many times.
WSAEDISCON (10094)
WSAHOST_NOT_FOUND (11001)
Host not found This error may also be returned for protocol and service queries, and means the specified name could not be found in the relevant database.
WSATRY_AGAIN (11002)
WSANO_RECOVERY (11003) This may be because the database files (e.g. BSD-compatible HOSTS, SERVICES or PROTOCOLS files) could not be found, or a DNS request was returned by the server with a severe error.
WSANO_DATA (11004) The usual example for this is a hostname -> address translation attempt (using gethostbyname or WSAAsyncGetHostByName) which uses the DNS (Domain Name Server), and an MX record is returned but no A record - indicating the host itself exists, but is not directly reachable.
WSA_INVALID_HANDLE (OS dependent)
WSA_INVALID_PARAMETER (OS dependent)
WSAINVALIDPROCTABLE
(OS dependent)
WSAINVALIDPROVIDER
(OS dependent) Invalid service provider version number
A service provider returned a version number other than 2.0. A completion indication will be given at a later time when the operation has been completed.
WSA_IO_INCOMPLETE (OS dependent) Applications that use WSAWaitForMultipleEvents in a polling mode to determine when an overlapped operation has completed will get this error code until the operation is complete.
WSA_NOT_ENOUGH_MEMORY (OS dependent)
WSAPROVIDERFAILEDINIT
(OS dependent) For example, if a call to WaitForMultipleObjects fails or one of the registry functions fails trying to manipulate the protocol/namespace catalogs. WSA_OPERATION_ABORTED (OS dependent) Overlapped operation aborted An overlapped operation was canceled due to the closure of the socket, or the execution of the SIO_FLUSH command in WSAIoctl. End of page Page 1/3 Winsock Error Codes Page 2/3 User Fixable Errors - There are two basic types of errors: those an application user can remedy, and those he cannot and a user should never see an error that is not user-fixable and list of user-fixable errors. |
|
|
|
![]() |
Can't find
what you want? Try Google... |
|
©Copyright June 2002 Permission to re-print, please click here
![]() |
Suggestions or feed-back, please drop us a note | eMail CRM Freeware | This site>>eMail Bolts & Nuts Home | Guest Book | Refund Policy | Privacy Policy | Contact Us | Support | Purchase | Product Info | Quick Tour Minute Wisdom | Sun Tzu Art of War | Useful Sites | eMail Broadcast FAQ's | Art of eMail CRM | eMail Marketing Tips |