Windows 系统特有的错误常量
下面的错误码与 Windows 系统相关。
常量 | 描述 |
---|---|
WSAEINTR |
表明中断的函数调用。 |
WSAEBADF |
表明一个无效的文件句柄。 |
WSAEACCES |
表明权限不够完成操作。 |
WSAEFAULT |
表明无效的指针地址。 |
WSAEINVAL |
表明无效的参数被传递。 |
WSAEMFILE |
表明有太多打开的文件。 |
WSAEWOULDBLOCK |
表明资源暂时不可用。 |
WSAEINPROGRESS |
表明操作当前正在进行中。 |
WSAEALREADY |
表明操作已经在进行中。 |
WSAENOTSOCK |
表明资源不是 socket。 |
WSAEDESTADDRREQ |
表明需要目的地址。 |
WSAEMSGSIZE |
表明消息太长。 |
WSAEPROTOTYPE |
表明 socket 协议类型错误。 |
WSAENOPROTOOPT |
表明错误的协议选项。 |
WSAEPROTONOSUPPORT |
表明协议不被支持。 |
WSAESOCKTNOSUPPORT |
表明 socket 类型不被支持。 |
WSAEOPNOTSUPP |
表明操作不被支持。 |
WSAEPFNOSUPPORT |
表明协议簇不被支持。 |
WSAEAFNOSUPPORT |
表明地址簇不被支持。 |
WSAEADDRINUSE |
表明网络地址已经在使用。 |
WSAEADDRNOTAVAIL |
表明网络地址不可用。 |
WSAENETDOWN |
表明网络关闭。 |
WSAENETUNREACH |
表明网络不可达。 |
WSAENETRESET |
表明网络连接被重置。 |
WSAECONNABORTED |
表明连接被终止。 |
WSAECONNRESET |
表明连接被同伴重置。 |
WSAENOBUFS |
表明没有可用的缓存空间。 |
WSAEISCONN |
表明 socket 已经连接。 |
WSAENOTCONN |
表明 socket 没有连接。 |
WSAESHUTDOWN |
表明数据在 socket 关闭之后,不能被发送。 |
WSAETOOMANYREFS |
表明有太多的引用。 |
WSAETIMEDOUT |
表明连接超时。 |
WSAECONNREFUSED |
表明连接被拒绝。 |
WSAELOOP |
表明名字不能被翻译。 |
WSAENAMETOOLONG |
表明名字太长。 |
WSAEHOSTDOWN |
表明网络主机关闭。 |
WSAEHOSTUNREACH |
表明没有到网络主机的路由。 |
WSAENOTEMPTY |
表明目录非空。 |
WSAEPROCLIM |
表明有太多的进程。 |
WSAEUSERS |
表明已经超过用户指标。 |
WSAEDQUOT |
表明已经超过磁盘指标。 |
WSAESTALE |
表明一个稳定的文件句柄引用。 |
WSAEREMOTE |
表明项目是远程的。 |
WSASYSNOTREADY |
表明网络子系统尚未准备好。 |
WSAVERNOTSUPPORTED |
表明 winsock.dll 版本在范围之外。 |
WSANOTINITIALISED |
表明成功的 WSAStartup 还没有被执行。 |
WSAEDISCON |
表明一个优雅的关机正在进行。 |
WSAENOMORE |
表明没有更多的结果。 |
WSAECANCELLED |
表明一个操作已经被取消。 |
WSAEINVALIDPROCTABLE |
表明过程调用表是无效的。 |
WSAEINVALIDPROVIDER |
表明无效的服务提供者。 |
WSAEPROVIDERFAILEDINIT |
表明服务提供者初始化失败。 |
WSASYSCALLFAILURE |
表明系统调用失败。 |
WSASERVICE_NOT_FOUND |
表明服务没有被找到。 |
WSATYPE_NOT_FOUND |
表明类类型没有被找到。 |
WSA_E_NO_MORE |
表明没有更多的结果。 |
WSA_E_CANCELLED |
表明调用被取消。 |
WSAEREFUSED |
表明数据库请求被拒绝。 |
The following error codes are specific to the Windows operating system.
Constant | Description |
---|---|
WSAEINTR |
Indicates an interrupted function call. |
WSAEBADF |
Indicates an invalid file handle. |
WSAEACCES |
Indicates insufficient permissions to complete the operation. |
WSAEFAULT |
Indicates an invalid pointer address. |
WSAEINVAL |
Indicates that an invalid argument was passed. |
WSAEMFILE |
Indicates that there are too many open files. |
WSAEWOULDBLOCK |
Indicates that a resource is temporarily unavailable. |
WSAEINPROGRESS |
Indicates that an operation is currently in progress. |
WSAEALREADY |
Indicates that an operation is already in progress. |
WSAENOTSOCK |
Indicates that the resource is not a socket. |
WSAEDESTADDRREQ |
Indicates that a destination address is required. |
WSAEMSGSIZE |
Indicates that the message size is too long. |
WSAEPROTOTYPE |
Indicates the wrong protocol type for the socket. |
WSAENOPROTOOPT |
Indicates a bad protocol option. |
WSAEPROTONOSUPPORT |
Indicates that the protocol is not supported. |
WSAESOCKTNOSUPPORT |
Indicates that the socket type is not supported. |
WSAEOPNOTSUPP |
Indicates that the operation is not supported. |
WSAEPFNOSUPPORT |
Indicates that the protocol family is not supported. |
WSAEAFNOSUPPORT |
Indicates that the address family is not supported. |
WSAEADDRINUSE |
Indicates that the network address is already in use. |
WSAEADDRNOTAVAIL |
Indicates that the network address is not available. |
WSAENETDOWN |
Indicates that the network is down. |
WSAENETUNREACH |
Indicates that the network is unreachable. |
WSAENETRESET |
Indicates that the network connection has been reset. |
WSAECONNABORTED |
Indicates that the connection has been aborted. |
WSAECONNRESET |
Indicates that the connection has been reset by the peer. |
WSAENOBUFS |
Indicates that there is no buffer space available. |
WSAEISCONN |
Indicates that the socket is already connected. |
WSAENOTCONN |
Indicates that the socket is not connected. |
WSAESHUTDOWN |
Indicates that data cannot be sent after the socket has been shutdown. |
WSAETOOMANYREFS |
Indicates that there are too many references. |
WSAETIMEDOUT |
Indicates that the connection has timed out. |
WSAECONNREFUSED |
Indicates that the connection has been refused. |
WSAELOOP |
Indicates that a name cannot be translated. |
WSAENAMETOOLONG |
Indicates that a name was too long. |
WSAEHOSTDOWN |
Indicates that a network host is down. |
WSAEHOSTUNREACH |
Indicates that there is no route to a network host. |
WSAENOTEMPTY |
Indicates that the directory is not empty. |
WSAEPROCLIM |
Indicates that there are too many processes. |
WSAEUSERS |
Indicates that the user quota has been exceeded. |
WSAEDQUOT |
Indicates that the disk quota has been exceeded. |
WSAESTALE |
Indicates a stale file handle reference. |
WSAEREMOTE |
Indicates that the item is remote. |
WSASYSNOTREADY |
Indicates that the network subsystem is not ready. |
WSAVERNOTSUPPORTED |
Indicates that the winsock.dll version is out of
range. |
WSANOTINITIALISED |
Indicates that successful WSAStartup has not yet been performed. |
WSAEDISCON |
Indicates that a graceful shutdown is in progress. |
WSAENOMORE |
Indicates that there are no more results. |
WSAECANCELLED |
Indicates that an operation has been canceled. |
WSAEINVALIDPROCTABLE |
Indicates that the procedure call table is invalid. |
WSAEINVALIDPROVIDER |
Indicates an invalid service provider. |
WSAEPROVIDERFAILEDINIT |
Indicates that the service provider failed to initialized. |
WSASYSCALLFAILURE |
Indicates a system call failure. |
WSASERVICE_NOT_FOUND |
Indicates that a service was not found. |
WSATYPE_NOT_FOUND |
Indicates that a class type was not found. |
WSA_E_NO_MORE |
Indicates that there are no more results. |
WSA_E_CANCELLED |
Indicates that the call was canceled. |
WSAEREFUSED |
Indicates that a database query was refused. |