Common socket Error Parameters

Source: Internet
Author: User
Tags old windows socket error connection reset domain name server mx record
Common socket Error Parameters
10053: Software-caused connection disconnection (10053 software caused connection abort) should be caused by an illegal operation performed by one of your applications during the running process. The software uses Socket errors.
This is a relatively simple software fault. It's nothing scary. Don't worry, just uninstall some bad software that you might think is running in the system, correct installation once. 10054 indicates that the remote host forces an existing connection to be closed. Q. "socket error 100xx "?
A. if this is true for all sites, make sure that your connection to the Internet is correct (if you use a proxy server, make sure that the settings are correct in flashget, if a firewall is used, you also need to configure the firewall software to allow flashget to access the Internet. For more information, see the Help file of the firewall software, do not download too many files at the same time. If this is the case for an individual site, it may be a temporary problem or the site cannot be connected at all (for example, some IP addresses are blocked in China). Please try again later.
Wsaeacces
(10013)
Permission denied.
An attempt was made to access a socket in a way forbidden by its access permissions. An example is using a broadcast address for sendto without broadcast permission being set using setsockopt (so_broadcast ).
Another possible reason for the wsaeacces error is that when the BIND function is called (on Windows NT 4 SP4 or later), another application, service, or Kernel Mode driver is bound to the same address with exclusive access. such exclusive access is a new feature of Windows NT 4 SP4 and later, and is implemented by using the so_exclusiveaddruse option.

Wsaeaddrinuse
(10048)
Address already in use.
Typically, only one usage of each socket address (Protocol/IP Address/port) is permitted. 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 cloproperly, 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 chooses an unused port automatically. when BIND is called with a wildcard address (involving addr_any), a wsaeaddrinuse error cocould be delayed until the specific address is committed. this cocould happen with a call to another function later, including connect, listen, wsaconnect, or wsajoinleaf.
Wsaeaddrnotavail
(10049)
Cannot assign requested address.
The requested address is not valid in its context. this normally results from an attempt to bind to an address that is not valid for the local machine. this can also result from connect, sendto, wsaconnect, wsajoinleaf, or wsasendto when the remote address or port is not valid for a remote machine (for example, address or port 0 ).
Wsaeafnosupport
(10047)
Address Family not supported by protocol family.
An address incompatible with the requested protocol was used. all sockets are created with an associated address family (that is, af_inet for Internet Protocols) and a generic protocol is invalid (that is, sock_stream ). this error is 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, for example, in sendto.
Wsaealready
(10037)
Operation already in progress.
An operation was attempted on a nonblocking socket with an operation already in progress-that is, calling connect a second time on a nonblocking socket that is already connecting, or canceling an asynchronous request (response) that has already been canceled or completed.
Wsaeconnaborted
(10053)
Software caused connection abort.
An established connection was aborted by the software in your host machine, possibly due to a data transmission time-out or protocol error.
Wsaeconnrefused
(10061)
Connection refused.
No connection cocould be made because the target machine actively refused it. this usually results from trying to connect to a service that is inactive on the foreign host-that is, one with no server application running.
Wsaeconnreset
(10054)
Connection reset by peer.
An existing connection was forcibly closed by the remote host. this normally results if the peer application on the remote host is suddenly stopped, the host is rebooted, or the remote host uses a hard close (see setsockopt for more information on the so_linger option on the remote socket .) this error may also result if a connection was broken due to keep-alive activity detecting a failure while one or more operations are in progress. operations that were in progress fail with wsaenetreset. subsequent operations fail with wsaeconnreset.
Wsaedestaddrreq
(10039)
Destination Address required.
A required address was omitted from an operation on a socket. For example, this error is returned if sendto is called with the remote address of addr_any.
Wsaefault
(10014)
Bad address.
The system detected an Invalid Pointer address in attempting to use a pointer argument of a call. this error occurs if an application passes an Invalid Pointer value, or if the length of the buffer is too small. for instance, if the length of an argument, which is a sockaddr structure, is smaller than the sizeof (sockaddr ).
Wsaehostdown
(10064)
Host is down.
A socket operation failed because the destination 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.
A socket operation was attempted to an unreachable host. See wsaenetunreach.
Wsaeinss SS
(10036)
Operation now in progress.
A blocking operation is currently to execute uting. windows Sockets only allows a single blocking operation-per-task or thread-to be outstanding, and if any other function call is made (whether or not it references that or any other socket) the function fails with the wsaeinprogress error.
Wsaeintr
(10004)
Interrupted function call.
A blocking operation was interrupted by a call to wsacancelblockingcall.
Wsaeinval
(10022)
Invalid argument.
Some invalid argument was supplied (for example, specifying an invalid level to the setsockopt function ). in some instances, it also refers to the current state of the socket-for instance, calling accept on a socket that is not listening.
Wsaeisconn
(10056)
Socket is already connected.
A CONNECT request was made on an already-connected socket. 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.
Wsaemfile
(10024)
Too program open files.
Too implements open sockets. Each implementation may have a maximum number of socket handles available, either globally, per process, or per Thread.
Wsaemsgsize
(10040)
Message too long.
A message sent on a datatime socket was larger than the internal message buffer or some other network limit, or the buffer used to receive a datatime was smaller than the datatime itself.
Wsaenetdown
(10050)
Network is down.
A socket operation encountered a dead network. this coshould indicate a serous failure of the network system (that is, the protocol stack that the Windows Sockets DLL runs over), the network interface, or the local network itself.
Wsaenetreset
(10052)
Network dropped connection on reset.
The connection has been broken due to keep-alive activity detecting a failure while the operation was in progress. it can also be returned by setsockopt if an attempt is made to set so_keepalive on a connection that has already failed.
Wsaenetunreach
(10051)
Network is unreachable.
A socket operation was attempted to an unreachable network. This usually means the local software knows no route to reach the remote host.
Wsaenobufs
(10055)
No buffer space available.
An operation on a socket cocould not be performed med because the system lacked sufficient buffer space or because a queue was full.
Wsaenoprotoopt
(10042)
Bad protocol option.
An unknown, invalid or unsupported option or level was specified in a getsockopt or setsockopt call.
Wsaenotconn
(10057)
Socket is not connected.
A request to send or receive data was disallowed because the socket is not connected and (when sending on a datatesocket using sendto) No address was supplied. any other is invalid of operation might also return this error-for example, setsockopt setting so_keepalive if the connection has been reset.
Wsaenotsock
(10038)
Socket operation on nonsocket.
An operation was attempted on something that is not a socket. Either the socket handle parameter did not reference a valid socket, or for select, a member of an fd_set was not valid.
Wsaeopnotsupp
(10045)
Operation not supported.
The attempted operation is not supported for the invalid of object referenced. usually this occurs when a socket de script or to a socket that cannot support this operation is trying to accept a connection on a datasync socket.
Wsaepfnosupport
(10046)
Protocol family not supported.
The protocol family has not been configured into the system or no implementation for it exists. this message has a slightly different meaning from wsaeafnosupport. however, it is interchangeable in most cases, and all Windows Sockets functions that return one of these messages also specify wsaeafnosupport.
Wsaeproclim
(10067)
Too processing processes.
A Windows Sockets implementation may have a limit on the number of applications that can use it simultaneously. wsastartup may fail with this error if the limit has been reached.
Wsaeprotonosupport
(10043)
Protocol not supported.
The requested protocol has not been configured into the system, or no implementation for it exists. For example, a socket call requests a sock_dgram socket, but specifies a stream protocol.
Invalid wsaeproto
(10041)
Protocol wrong is invalid for socket.
A protocol was specified in the socket function call that does not support the semantics of the socket is invalid requested. For example, the ARPA Internet UDP Protocol cannot be specified with a socket is invalid of sock_stream.
Wsaeshudown
(10058)
Cannot send after socket shutdown.
A request to send or receive data was disallowed because the socket had already been shut down in that direction with a previous shutdown call. by calling shutdown a partial close of a socket is requested, which is a signal that sending or stopping ing, or both have been discontinued.
Wsaesocktnosupport
(10044)
The socket is invalid. not supported.
The support for the specified socket is invalid. does not exist in this address family. for example, the optional is invalid. sock_raw might be selected in a socket call, And the implementation does not support sock_raw sockets at all.
Wsaetimedout
(10060)
Connection timed out.
A connection attempt failed because the connected party did not properly respond after a period of time, or the established connection failed because the connected host has failed to respond.
Invalid WSA _ not_found
(10109)
Invalid class not found.
The specified class was not found.
Wsaewouldblock
(10035)
Resource temporarily unavailable.
This error is returned from operations on nonblocking sockets that cannot be completed immediately, for example Recv when no data is queued to be read from the socket. it is a nonfatal error, and the operation shoshould be retried later. it is normal for wsaewouldblock to be reported as the result from calling connect on a nonblocking sock_stream socket, since some time must elapse for the connection to be established.
Wsahost_not_found
(11001)
Host not found.
No such host is known. the name is not an official host name or alias, or it cannot be found in the database (s) being queried. this error may also be returned for protocol and service queries, and means that the specified name cocould not be found in the relevant database.
Wsa_invalid_handle
(OS dependent)
Specified event object handle is invalid.
An application attempts to use an event object, but the specified handle is not valid.
Wsa_invalid_parameter
(OS dependent)
One or more parameters are invalid.
An application used a Windows Sockets function which directly maps to a Win32 function. The Win32 function is indicating a problem with one or more parameters.
Wsainvalidproctable
(OS dependent)
Invalid procedure table from service provider.
A service provider returned a bogus procedure table to ws2_32.dll. (usually caused by one or more of the function pointers being null .)
Wsainvalidprovider
(OS dependent)
Invalid service provider version number.
A service provider returned a version number other than 2.0.
Wsa_io_incomplete
(OS dependent)
Overlapped I/O event object not in signaled state.
The application has tried to determine the status of an overlapped operation which is not yet completed. applications that use wsagetoverlappedresult (with the fwait flag set to false) in a polling mode to determine when an overlapped operation has completed, get this error code until the operation is complete.
Wsa_io_pending
(OS dependent)
Overlapped operations will complete later.
The application has initiated an overlapped operation that cannot be completed immediately. A completion indication will be given later when the operation has been completed.
Wsa_not_enough_memory
(OS dependent)
Insufficient memory available.
An application used a Windows Sockets function that directly maps to a Win32 function. The Win32 function is indicating a lack of required memory resources.
Wsanotinitialised
(10093)
Successful wsastartup not yet completed MED.
Either the application hasn' t called wsastartup or wsastartup failed. the application may be accessing a socket that the current active task does not own (that is, trying to share a socket between tasks), or wsacleanup has been called too Daily Times.
Wsano_data
(11004)
Valid name, no data record of requested is invalid.
The requested name is valid and was found in the database, but it does not have the correct associated data being resolved. the usual example for this is a host name-to-address translation attempt (using gethostbyname or wsaasyncgethostbyname) which uses the DNS (Domain Name Server ). an MX record is returned but no a record-indicating the host itself exists, but is not directly reachable.
Wsano_recovery
(11003)
This is a nonrecoverable error.
This indicates some sort of nonrecoverable error occurred during a database lookup. this may be because the database files (for example, BSD-compatible hosts, services, or protocols files) cocould not be found, or a DNS request was returned by the server with a severe error.
Wsaproviderfailedinit
(OS dependent)
Unable to initialize a service provider.
Either a service provider's dll cocould not be loaded (loadlibrary failed) or the provider's wspstartup/nspstartup function failed.
Wsasyscallfailure
(OS dependent)
System Call failure.
Returned when a system call that shoshould never fail does. For example, if a call to waitformultipleobjects fails or one of the registry functions fails trying to manipulate the Protocol/Name Space catalogs.
Wsasysnotready
(10091)
Network subsystem is unavailable.
This error is returned by wsastartup if the Windows Sockets implementation cannot function at this time because the underlying system it uses to provide network services is currently unavailable. Users shoshould check:
That the appropriate Windows Sockets DLL file is in the current path.
That they are not trying to use more than one Windows Sockets implementation simultaneously. if there is more than one Winsock DLL on your system, be sure the first one in the path is appropriate for the network subsystem currently loaded.
The Windows Sockets implementation document ation to be sure all necessary components are currently installed and configured correctly.
Wsatry_again
(11002)
Nonauthoritative host not found.
This is usually a temporary error during host name resolution and means that the local server did not receive a response from an authoritative server. A retry at some time later may be successful.
Wsavernotsupported
(10092)
Winsock. dll version out of range.
The current Windows Sockets implementation does not support the Windows Sockets Specification Version requested by the application. Check that no old Windows Sockets DLL files are being accessed.
Wsaediscon
(10101)
Graceful shutdown in progress.
Returned by wsarecv and wsarecvfrom to indicate that the remote party has initiated a graceful shutdown sequence.
Wsa_operation_aborted
(OS dependent)
Overlapped operation aborted.
An Overlapped operation was canceled due to the closure of the socket, or the execution ution of the sio_flush command in wsaioctl.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.