Winsock error code Overview

Source: Internet
Author: User
Tags set socket unsupported


Winsock error code
Lists All wi n s o C k error codes by error number. However, it should be noted that this list does not include wi n o c k errors marked as "B S D-specific", nor those not officially listed in the specification. In addition, wi n s o c k errors that directly correspond to Wi N 3 2 errors are listed at the end of this appendix.
1 0 0 0 4-w s a e I n t r
Function call interruption. This error indicates that a call is forcibly interrupted due to the call to w s a c a n c e l B l o C k I n g C A L.
1 0 0 0 9-w s a e B A D f
File handle error. This error indicates that the provided file handle is invalid. In Microsoft Windows CE, the s o c k e t function may return this error, indicating that the shared serial port is in the "busy" status.
1 0 0 1 3-W S A E A C E S
The permission is denied. Attempts to operate the socket are not allowed. If you try to use a broadcast address in s e n d t o or w s a s e n d, however, if you have not set broadcast permissions using the s e t s o c k o p t and s o _ B R o a D C A S T options, this type of error will occur.
1 0 0 1 4-w s a e fa u lt
Invalid Address. The pointer address passed to the wi n s o c k function is invalid. This error is also returned if the specified buffer is too small.
1 0 0 2 2-W s a e I n va L
The parameter is invalid. An invalid parameter is specified. For example, if an invalid control code is specified for the w s a I o c t l call, this error is generated. In addition, it may indicate that the current status of the socket is incorrect, for example, calling a c e p t or w s a c e p t on a socket that is not currently monitored.
1 0 0 2 4-w s a e m f I l e
Too many files are opened. The system prompts that too many sockets are opened. Generally, m I c r o s o f t providers are limited only by the number of available resources in the system.
1 0 0 3 5-w s a e w o u l d B l o C K
Resources are temporarily unavailable. For a non-locked socket, if the request operation cannot be executed immediately, this error is usually returned. For example, if you call c o n e c t on a non-paused socket, this error is returned. The connection request cannot be executed immediately.
1 0 0 3 6-w s a e I n p r o G R E S
The operation is in progress. The operation is not locked. Generally, this error will not occur unless a 6-bit wi n s o c k application is being developed.
1 0 0 3 7-w s a e a l r e a d y
The operation has been completed. Generally, this error occurs when you try an operation that is already in the process on a non-locked socket. For example, on a non-locked socket that is already in the connection process, call c o n e c t or w s a c o n e c t again. In addition, this error occurs when the service provider is executing a callback function (for Wi n s o c k functions that support callback routines.
1 0 0 3 8-w s a e n o t s o C K
The socket operation on the socket is invalid. This error is returned for any wi n s o c k e t handle that treats s o c k e t handle as a parameter. It indicates that the provided socket handle is invalid.
1 0 0 3 9-w s a e d e S Ta d r e Q
The target address is required. This error indicates that no specific address is provided. For example, if the target address is set to I n a d r _ A N Y (any address) When s e n d t o is called, this error is returned.
1 0 0 4 0 W S A E M S G S I Z E
The message is too long. This error has many meanings. If a message is sent on a datagram socket, this error occurs if the message is too large for the internal buffer. For example, if a message is too long due to network restrictions, this error may also occur. Finally, if the buffer is too small after the datagram is received and the message cannot be received, this error will also occur.
1 0 0 4 1-w s a e p r o to T Y P E
The SOCKET protocol type is incorrect. The Protocol specified in the call of S o c k e t or w s a s o c k e t does not support the specified socket type. For example, it is required to establish an I p socket of the S o c k _ s t r e a M type, and specify the Protocol as I p r o to _ u D p, this error occurs.
1 0 0 4 2-W s a e n o p r o to o p t
The protocol option is incorrect. It indicates that the specified socket options or levels are unknown, unsupported, or invalid in the call of g e t s o c k o p t or s e t s o c k o p t.
1 0 0 4 3--w s a e p r o to n o s u p o RT
Unsupported protocol. The system does not have the Protocol to install the request or there is no corresponding implementation scheme. For example, if t c p/I p is not installed in the system and T C P or U D p socket is created, this error occurs.
1 0 0 4 4 4 w s a e s o c k t n o s u p o RT
The socket type is not supported. For the specified address family, no specific socket type is supported. For example, this error occurs when an S o c k _ r aw socket type is created for a protocol request that does not support the original socket.
Error.
1 0 0 4 5-w s a e o p n o t s u p
The operation is not supported. Indicates that the operation to be taken for the specified object is not supported. Generally, this error occurs if you try to call wi n s o c k on a socket that does not support calling the wi n s o c k function. For example, this error occurs when a c e p t or w s a c e p t function is called on a datagram socket.
1 0 0 4 6-w s a e p f n o s u p o RT
Unsupported protocol family. The requested protocol family does not exist or has not been installed in the system. In most cases, this error can be exchanged with w s a e a f n o s u p o RT (equivalent to both); the latter appears more frequently.
1 0 0 4 7-w s a e a f n o s u p o RT
The address family does not support request operations. This error occurs when you try to execute an operation that is not supported by the socket type. For example, when a socket of the type s o c k _ s t r e a m calls the s e n d t o or w s a s e n d to function, this error occurs. In addition, when calling the s o c k e t or w s a s o c k e t function, if an Invalid Address Family, socket type, and Protocol combination are simultaneously requested, this error is also generated.
1 0 0 4 8-w s a e a d r I n u s e
The address is in use. Under normal circumstances, each socket can only use one socket address (for example, an I p
The address consists of the local I P address and the port number ). This error is generally related to the three functions, namely, B I n d, c o n e c t, and W S A c o n e c t. You can set socket options in the s e t s o c k o p t function s o _ r e u s e a d r, allow multiple sockets to access the same local I P address and port number (for details, see chapter 9th ).
1 0 0 4 9-w s a e a d r n o tava I L
The request address cannot be allocated. If the address specified in a p I call is invalid for that function, such an error occurs. For example, if an I p address is specified in the B I n d call, but there is no corresponding local I p interface, this error will occur. In addition, through c o n e c t, w s a c o n e c t, s e n d t o, w s a s e n d to and W S A J o I n l e a f when the four functions specify port 0 for the remote computer to be connected, this error will also occur.
1 0 0 5 0 w s a e n e t d o W n
The network is disconnected. When trying to take an operation, the network connection is interrupted. This may be caused by network stack errors, network interface faults, or local network problems.
1 0 0 5 1-w s a e n e t u n r e a C H
The network cannot be reached. When trying to perform an operation, the target network cannot be reached (inaccessible ). This means that the local host does not know how to reach a remote host. In other words, there is no known route to reach the target host.
1 0 0 5 2-W s a e n e t r e s e t
The connection is disconnected when the network is reset. A network connection is interrupted because an error is detected during the "keep active" operation. If an invalid connection exists, use the s e t s o c k o p t function to set the s o _ k e pa l I V E Option, this error also occurs.
1 0 0 5 3-w s a e c o n a B o RT e d
The software cancels the connection. A connection that has been established is canceled due to a software error. In typical cases, this means that the connection is canceled due to a protocol or timeout error.
1 0 0 5 4-w s a e c o n r e s e t
The connection is reset by the other party. A established connection is forcibly closed by the remote host. If the process on the remote host is aborted abnormally (due to memory conflicts or hardware faults), or the socket is forcibly disabled, this error occurs. You can use the s o _ L I n g e r socket option and S E T s o C K o p t to configure a socket for forced shutdown ).
1 0 0 5-w s a e n o B u F S
No buffer space. The requested operation cannot be performed because the system lacks sufficient buffer space.
1 0 0 5 6-w s a e I s c o n
The socket has been connected. Indicates that an attempt is made to establish another connection on a socket that has established a connection. Note that such errors may occur in both the datagram and data stream sockets. When a datagram socket is used, if the interface has been called through c o n e c t or w s a c o n e c t in advance, an endpoint address is associated for the datagram communication, then try to call s e n d t o or w s a s e n d to again, this error will be generated.
1 0 0 5 7-w s a e n o t C o n
The socket has not been connected. If you send and receive data requests on a "connection-oriented" socket that has not yet established a connection, this error occurs.
1 0 0 5 8-w s a e s h u t d o W n
After the socket is disabled, it cannot be sent. This indicates that the socket has been partially closed by calling s h u t d o W n, but requests for data sending and receiving afterwards. It should be noted that such errors only occur in the closed data flow direction. For example, after data transmission is completed, if s h u t d o W n is called, any data transmission call in the future will produce such an error.
1 0 0 6 0 w s a e t I m e d o u t
Connection timeout. If a connection request is sent, but after the specified time, the remote computer does not make the correct response (or there is no response at all), this error will occur. To receive such an error, you must first set the s o _ S n d t I m e o and s o _ r c v t I m e o options on the socket, then call the c o n e c t and w s a c o n e c t functions. For more information about how to set the s o _ S n d t I m e o and s o _ r c v t I m e o options on a socket, see Chapter 9th.
1 0 0 6 1-w s a e c o n r e f u s e d
Connection rejected. The connection cannot be established because it is rejected by the target machine. This is usually because there is no application on the remote machine that can serve the connection.
1 0 0 6 4-w s a e h o s t d o W n
Shut down the host. This error indicates that the operation failed due to the shutdown of the target host. However, the application is more likely to receive a w s a e t I m e d o u t (connection timeout) error at this time, this is because the other party usually tries to establish a connection when it shuts down.
1 0 0 6 5-w s a e h o s t u n r e a C H
No route to the host. The application tries to access an inaccessible host. This error is similar
W s a e n e t u n r e a c h.
1 0 0 6 7-w s a e p r o c l I m
Too many processes. Some wi n s o c k service providers limit the number of processes that can access them at the same time.
1 0 0 9 1-w s a s y s n o t r e a d y
The network subsystem is unavailable. When you call w s a s t a r t u p, if the provider cannot work normally (because the base layer that provides the service
The system is unavailable.
1 0 0 9 2-w s av e r n o t s u p o RT e d
The wi n s o c k. d l version is incorrect. Indicates that the request's wi n s o c k provider version is not supported.
1 0 0 9 3-w s a n o t I n I a l I s e d
Wi n s o c k has not been initialized. A call to w s a s t a r t u p has not been completed successfully.
1 0 1 0 1-w s a e d I s c o n
Closing at ease. This error is returned by w s a r e c v and w s a r e c v f r o m, indicating that the remote host has been initialized with a calm shutdown operation. This error occurs on message-oriented protocols like at M.
1 0 1 0 2-W s a e n o m o r e
More records cannot be found. This error is returned from the w s a l o k u p s e r v I c e n e x T function, indicating that no more records are left. This error can be used with w s a _ E _ n o _ m o r e. In the application, check this error and w s a _ E _ n o _ m o r e.
1 0 1 0 3-w s a e c a n c e l e d
The operation is canceled. This error indicates that when w s a l o k u p s e r v I c e n e x T calls are still being processed, A call is made to w s a l o k u p s e r v I c e n d (Service abort. In this case, w s a l o k u p s e r v I c e n e x T will return this error. This error code can be used with w s a _ E _ c a n c e l e d. As an application, check this error and w s a _ E _ c a n c e l e d. 1 0 1 0 4-w s a e I n va l I d p r o C ta B l e process call table is invalid. This error is usually caused by a service provider when the table contains invalid entries.
. For more information about service providers, see Chapter 4.
1 0 1 0 5-w s a e I n va l I d p r o V I D E R
Invalid service provider. This error is associated with the service provider. It is generated when the provider cannot establish a correct wi n s o c k version, and thus cannot work normally.
1 0 1 0 6-w s a e p r o v I d e r fa I l e d I n I t
Provider initialization failed. This error is associated with the service provider. It is usually seen when the provider cannot load the required d L.
1 0 1 0 7-w s a s y s c a l fa I L u r e
System Call failed. It indicates that a system call should never fail, but unfortunately failed.
1 0 1 0 8-w s a s e rv I C E _ n o t _ f o u n d
This service cannot be found. This error is usually related to registration and name resolution functions, which are generated when you query the Service (Chapter 1st describes these functions in detail ). This error indicates that the requested service cannot be found within the specified namespace.
1 0 1 0 9-w s at y p e _ n o t _ f o u n d
The class type cannot be found. This error is also associated with registration and name resolution functions and occurs when processing a service class (s e r v I c EC L A S. If you register a service instance, it must reference a service that was previously installed through w s a I n s t a l e r v I C E L A S.
1 0 11 0-w s a _ E _ n o _ m o r e
More records cannot be found. This error is returned from the call of w s a l o k u p s e r v I c e n e x T, indicating that there are no remaining records. This error can usually be used with w s a e n o m o r e. As an application, check this error and w s a e n o m o r e at the same time.
1 0 111-w s a _ E _ c a n c e l e d
The operation is canceled. This error indicates that when the call to w s a l o k u p s e r v I c e n e x T is not completed, A call to w s a l o k u p s e r v I c e n d (STOP service) is also issued. In this way, w s a l o k u p s e r v I c e n e x T will return this error. This error code can be used interchangeably with w s a e c a n c e l e d. As an application, check this error and w s a e c a n c e l e d at the same time.
1 0 11 2-w s a e r e f u s e d
Query rejected. A database query operation failed because it was rejected.
11 0 0 1-w s a h o s t _ n o t _ f o u n d
The host is not found. This error is generated when calling g e t h o s t B y n a m E and g e t h o s t B y a d r, the authoritative answer host is not found ).
11 0 0 2-w s at ry _ a g a I n
The unauthorized host is not found. This error is also generated when calling g e t h o s t B y n a m E and g e t h o s t B y a d r, indicates that no unauthorized host is found or a Server failure occurs.
11 0 0 3-w s a n o _ r e c o v e ry
An unrecoverable error occurs. This error is also generated when calling g e t h o s t B y n a m E and g e t h o s t B y a d r, it indicates that an unrecoverable error is encountered and the operation should be performed again.
11 0 0 4-w s a n o _ d ata
No data record of the Request type is found. This error is also generated when calling g e t h o s t B y n a m E and g e t h o s t B y a d r, although the provided name is valid, no data record corresponding to the request type is found.
11 0 0 5-w s a _ q o s _ r e c e I V E R S
At least one booking message arrives. This value is closely related to I p service quality (Q O S). In fact, it is not a real "error" (for details about Q O S, see Chapter 2 ). It indicates that at least one process on the network wants to receive q o s communication.
11 0 0 6-w s a _ q o s _ s e n d E R S
At least one path message arrives. This value is associated with q o s, which is more like a status report message. It indicates that at least one process on the network wants to send q o s data.
11 0 0 7-w s a _ q o s _ n o _ s e n d E R S
No Qo S sender. This value is associated with q o s, indicating that no process is interested in sending q o s data. See Chapter 2 for a complete series of instructions on the situation when such an error occurs.
11 0 0 8-w s a _ q o s _ n o _ r e I V E R S
No q o s receiver. This value is associated with q o s, indicating that no process is interested in receiving q o s data. See Chapter 2 for a complete description of this error.
11 0 0 9-w s a _ q o s _ r e q u e S t _ c o n f I r m e d
The reservation request has been confirmed. The q o s application can send a request in advance, hoping to receive a notification after it approves its network bandwidth reservation request. If such a request is sent, such a message is received upon approval. For more information, see Chapter 2.
11 0 1 0-w s a _ q o s _ a d m I s I o n _ fa I L u r e
Error due to lack of resources. Resources are insufficient, so that the q o s bandwidth request cannot be met.
11 0 11-w s a _ q o s _ p o l I c Y _ fa I L u r e
The certificate is invalid. Indicates that the user does not have the correct permission or the provided certificate is invalid when the q o s reservation request is sent.
11 0 1 2-W s a _ q o s _ B A D _ S T Y l e
An unknown or conflicting style. The q o s application can create different filter styles for a specified session. If this error occurs, the specified style type is either unknown or conflicted. See Chapter 2 for detailed descriptions of filter styles.
11 0 1 3-w s a _ q o s _ B a d _ o B j e c t
Invalid f I LT E R S P E C structure or provider-specific object. If the f I LT E R S P E C structure provided for the Q O S object is invalid, or the buffer unique to the provider is invalid, this error is returned. For details, see Chapter 2.
11 0 1 4-w s a _ q o s _ t r a f I c _ c T R L _ e r o r
F l o w s p e c has a problem. If the communication control component finds a problem with the specified f l o w s p e c parameter (transmitted as a member of the q o s Object), it will return such an error.
11 0 1 5-w s a _ q o s _ g e n e r I C _ e r o r
Normal q o s error. This is a general error. If other q o s errors are not suitable, this error is returned.
6-w s a _ I n va l I D _ H a n d l e
The specified event object is invalid. If the wi n s o c k function corresponding to the wi n 3 2 function is used, such a wi N 3 2 error may occur. It indicates that a handle passed to w s Awa I t f o r m u l t I p L e v e n t s is invalid.
8-w s a _ n o t _ e n o u g H _ m e m o ry
Insufficient memory. The wi n 3 2 error indicates that the number of memory is insufficient and the specified operation cannot be completed.
8 7-w s a _ I n va l I D _ pa r a m e t e r
One or more parameters are invalid. The wi n 3 2 error indicates that the parameter passed to the function is invalid. If the event count parameter is invalid, when executing w s Awa I t f o r m u l t I p L e v e n t s, this will also happen.
2 5 8-w s a _ wa I t _ t I m e o u t
Operation timeout. This wi N 3 2 error indicates that the overlapping I/O operation was not completed within the specified time.
9 5-w s a _ o p e r at I o n _ A B o RT e d
Overlapping operations are canceled. This wi N 3 2 error indicates that due to the closure of the socket, an overlapping I/O operation is canceled. This error may also occur when executing the I/O control command "s I O _ F L U S H.
9 9 6-w s a _ I o _ I n c o m p L E T E
Overlapping I/o Event objects are not in the message transmission status. This wi N 3 2 error is also closely related to overlapping I/O operations, this function is generated when the w s a g e t o v e r l a p e d r e s u l t s function is called. It is pointed out that the overlapping I/O operation has not been completed yet.
9 9 7-w s a _ I o _ p e n d I n g
Overlapping operations will be completed later. When I/O operations are overlapped by wi N S o C K function, if such wi N 3 2 error occurs, it indicates that the operation has not been completed, it will be completed at a later time.
 
 

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.