Socket_错误一览表

合集下载

Socket编程协议错误代码解析

Socket编程协议错误代码解析

10004—WSAEINTR函数调用中断。

该错误表明由于对WSACancelBlockingCall的调用,造成了一次调用被强行中断。

10009—WSAEBADF文件句柄错误。

该错误表明提供的文件句柄无效。

在MicrosoftWindowsCE下,socket函数可能返回这个错误,表明共享串口处于“忙”状态。

10013—WSAEACCES权限被拒。

尝试对套接字进行操作,但被禁止。

若试图在sendto或WSASendTo中使用一个广播地址,但是尚未用setsockopt和SO_BROADCAST这两个选项设置广播权限,便会产生这类错误。

10014—WSAEFAULT地址无效。

传给Winsock函数的指针地址无效。

若指定的缓冲区太小,也会产生这个错误。

10022—WSAEINVAL参数无效。

指定了一个无效参数。

例如,假如为WSAIoctl调用指定了一个无效控制代码,便会产生这个错误。

另外,它也可能表明套接字当前的状态有错,例如在一个目前没有监听的套接字上调用accept或WSAAccept。

10024—WSAEMFILE打开文件过多。

提示打开的套接字太多了。

通常,Microsoft提供者只受到系统内可用资源数量的限制。

10035—WSAEWOULDBLOCK资源暂时不可用。

对非锁定套接字来说,如果请求操作不能立即执行的话,通常会返回这个错误。

比如说,在一个非暂停套接字上调用connect,就会返回这个错误。

因为连接请求不能立即执行。

10036—WSAEINPROGRESS操作正在进行中。

当前正在执行非锁定操作。

一般来说不会出现这个错误,除非正在开发16位Winsock应用程序。

10037—WSAEALREADY操作已完成。

一般来说,在非锁定套接字上尝试已处于进程中的操作时,会产生这个错误。

比如,在一个已处于连接进程的非锁定套接字上,再一次调用connect或WSAConnect。

另外,服务提供者处于执行回调函数(针对支持回调例程的Winsock函数)的进程中时,也会出现这个错误。

socket错误代码

socket错误代码

socket错误代码Socket error 0 - Directly send errorSocket error 10004 - Interrupted function call⼀个封锁操作被对 WSACancelBlockingCall 的调⽤中断。

Socket error 10013 - Permission denied以⼀种访问权限不允许的⽅式做了⼀个访问套接字的尝试。

Socket error 10014 - Bad address系统检测到在⼀个调⽤中尝试使⽤指针参数时的⽆效指针地址。

Socket error 10022 - Invalid argument提供了⼀个⽆效的参数。

Socket error 10024 - Too many open files打开的套接字太多。

Socket error 10035 - Resource temporarily unavailable⽆法⽴即完成⼀个⾮阻⽌性套接字操作。

Socket error 10036 - Operation now in progress ⽬前正在执⾏⼀个阻⽌性操作。

Socket error 10037 - Operation already in progress 在⼀个⾮阻⽌性套接字上尝试了⼀个已经在进⾏的操作。

Socket error 10038 - Socket operation on non-socket 在⼀个⾮套接字上尝试了⼀个操作。

Socket error 10039 - Destination address required 请求的地址在⼀个套接字中从操作中忽略。

Socket error 10040 - Message too long ⼀个在数据报套接字上发送的消息⼤于内部消息缓冲区或其他⼀些⽹络限制,或该⽤户⽤于接收数据报的缓冲区⽐数据报⼩。

Socket error 10041 - Protocol wrong type for socket 在套接字函数调⽤中指定的⼀个协议不⽀持请求的套接字类型的语法。

SOCKET错误代码表

SOCKET错误代码表

WSAEWOULDBLOCK (10035) 函式作用阻攔中
WSAETIMEDOUT (10060) Connection timed out
WSAHOST_NOT_FOUND (11001) Host not found
WSASYSNOTREADY (10091) Network sub-system is unavailable
WSANOTINITIALISED (10093) WSAStartup() not performed
Socket error 10050 - Network is down
Socket error 10051 - Network is unreachable
Socket error 10052 - Network dropped connection on reset
Socket error 10053 - Software caused connection abort
Socket error 10037 - Operation already in progress
Socket error 10038 - Socket operation on non-socket
Socket error 10039 - Destination address required
getstockname()
沒有呼叫bind()函式指定socket名稱
listen()
已經處於連接狀態或是socket沒有呼叫bind()函式指定socket名稱
recv()和recvfrom()
對於datagram socket,socket沒有呼叫bind()函式指定IP位址、port和協定等;對於stream socket,連接尚未建立

Linux socket错误分析

Linux socket错误分析

Linux网络编程socket错误分析socket错误码:EINTR:4阻塞的操作被取消阻塞的调用打断。

如设置了发送接收超时,就会遇到这种错误。

只能针对阻塞模式的socket。

读,写阻塞的socket时,-1返回,错误号为INTR。

另外,如果出现EINTR即errno为4,错误描述Interrupted system call,操作也应该继续。

如果recv 的返回值为0,那表明连接已经断开,接收操作也应该结束。

ETIMEOUT:1101、操作超时。

一般设置了发送接收超时,遇到网络繁忙的情况,就会遇到这种错误。

2、服务器做了读数据做了超时限制,读时发生了超时。

3、错误被描述为“connect time out”,即“连接超时”,这种情况一般发生在服务器主机崩溃。

此时客户TCP 将在一定时间内(依具体实现)持续重发数据分节,试图从服务TCP 获得一个ACK 分节。

当最终放弃尝试后(此时服务器未重新启动),内核将会向客户进程返回ETIMEDOUT 错误。

如果某个中间路由器判定该服务器主机已经不可达,则一般会响应“destination unreachable”-“目的地不可达”的ICMP消息,相应的客户进程返回的错误是EHOSTUNREACH 或ENETUNREACH。

当服务器重新启动后,由于TCP 状态丢失,之前所有的连接信息也不存在了,此时对于客户端发来请求将回应RST。

如果客户进程对检测服务器主机是否崩溃很有必要,要求即使客户进程不主动发送数据也能检测出来,那么需要使用其它技术,如配置SO_KEEPALIVE Socket 选项,或实现某些心跳函数。

EAGAIN:1、Send返回值小于要发送的数据数目,会返回EAGAIN和EINTR。

2、recv 返回值小于请求的长度时说明缓冲区已经没有可读数据,但再读不一定会触发EAGAIN,有可能返回0表示TCP连接已被关闭。

3、当socket是非阻塞时,如返回此错误,表示写缓冲队列已满,可以做延时后再重试.4、在Linux进行非阻塞的socket接收数据时经常出现Resource temporarily unavailable,errno 代码为11(EAGAIN),表明在非阻塞模式下调用了阻塞操作,在该操作没有完成就返回这个错误,这个错误不会破坏socket的同步,不用管它,下次循环接着recv就可以。

Socket的错误码和描述

Socket的错误码和描述

Socket的错误码和描述Socket的错误码和描述(中英文翻译)//下面是Socket Error的错误码和描述:Socket error 0 - Directly send errorSocket error 10004 - Interrupted function //call 操作被终止Socket error 10013 - Permission denied //c访问被拒绝Socket error 10014 - Bad address //c地址错误Socket error 10022 - Invalid argument //参数错误Socket error 10024 - Too many open files // 打开太多的socketsSocket error 10035 - Resource temporarily unavailable // 没有可以获取的资料Socket error 10036 - Operation now in progress // 一个阻塞操作正在进行中Socket error 10037 - Operation already in progress // 操作正在进行中Socket error 10038 - Socket operation on non-socket //非法的socket对象在操作Socket error 10039 - Destination address required //目标地址错误Socket error 10040 - Message too long //数据太长Socket error 10041 - Protocol wrong type for socket //协议类型错误Socket error 10042 - Bad protocol option // 错误的协议选项Socket error 10043 - Protocol not supported //协议不被支持Socket error 10044 - Socket type not supported //socket类型不支持Socket error 10045 - Operation not supported //不支持该操作Socket error 10046 - Protocol family not supported //协议族不支持Socket error 10047 - Address family not supported by protocol family//使用的地址族不在支持之列Socket error 10048 - Address already in use //地址已经被使用Socket error 10049 - Cannot assign requested address //地址设置失败Socket error 10050 - Network is down //网络关闭Socket error 10051 - Network is unreachable //网络不可达Socket error 10052 - Network dropped connection on reset //网络被重置Socket error 10053 - Software caused connection abort //软件导致连接退出Socket error 10054 - connection reset by peer //连接被重置Socket error 10055 - No buffer space available //缓冲区不足Socket error 10056 - Socket is already connected // socket已经连接Socket error 10057 - Socket is not connected //socket没有连接Socket error 10058 - Cannot send after socket shutdown //socket已经关闭Socket error 10060 - Connection timed out //超时Socket error 10061 - Connection refused //连接被拒绝Socket error 10064 - Host is down //主机已关闭Socket error 10065 - No route to host // 没有可达的路由Socket error 10067 - Too many processes //进程太多Socket error 10091 - Network subsystem is unavailable //网络子系统不可用Socket error 10092 - WINSOCK.DLL version out of range//winsock.dll版本超出范围Socket error 10093 - Successful WSAStartup not yet performed //没有成功执行WSAStartupSocket error 10094 - Graceful shutdown in progress //Socket error 11001 - Host not found //主机没有找到Socket error 11002 - Non-authoritative host not found // 非授权的主机没有找到Socket error 11003 - This is a non-recoverable error //这是个无法恢复的错误Socket error 11004 - Valid name, no data record of requested type //请求的类型的名字或数据错误WSAEADDRINUSE (10048) Address already in useWSAECONNABORTED (10053) Software caused connection abortWSAECONNREFUSED (10061) Connection refusedWSAECONNRESET (10054) Connection reset by peerWSAEDESTADDRREQ (10039) Destination address required WSAEHOSTUNREACH (10065) No route to hostWSAEMFILE (10024) Too many open filesWSAENETDOWN (10050) Network is downWSAENETRESET (10052) Network dropped connectionWSAENOBUFS (10055) No buffer space availableWSAENETUNREACH (10051) Network is unreachableWSAETIMEDOUT (10060) Connection timed outWSAHOST_NOT_FOUND (11001) Host not foundWSASYSNOTREADY (10091) Network sub-system is unavailableWSANOTINITIALISED (10093) WSAStartup() not performed WSANO_DATA (11004) Valid name, no data of that typeWSANO_RECOVERY (11003) Non-recoverable query error WSATRY_AGAIN (11002) Non-authoritative host foundWSAVERNOTSUPPORTED (10092) Wrong WinSock DLL version。

Windows Sockets 错误码及出错原因

Windows Sockets 错误码及出错原因
WSAEMSGSIZE
EMSGSIZE
10040
同BSD
WSAEPROTOTYPE
EPROTOTYPE
10041
同BSD
WSAENOPROTOOPT
ENOPROTOOPT
10042
同BSD
WSAEPROTONOSUPPORT
EPROTONOSUPPORT
10043
同BSD
WSAESOCKTNOSUPPORT
NO_RECOVERY
11003
同BSD
WSANO_DATA
NO_DATA
11004
同BSD
A.2Windows Sockets错误码扩展描述
下面给出WSAGetLastError()函数返回的可能错误码按字母顺序排列的列表,同时给出简要的扩展描述。
WSAEACCES (10013) Permission denied.
WSAEDESTADDRREQ (10039) Destination address required.
在套接字上一个操作所必须的地址被遗漏。例如,如果sendto()函数被调用且远程地址为ADDR_ANY时,此错误被返回。
WSAEFAULT (10014) Bad address.
系统检测到调用试图使用的一个指针参数指向的是一个非法指针地址。如果应用程序传递一个非法的指针值,或缓冲区长度太小,此错误发生。例如,参数为结构sockaddr,但参数的长度小于sizeof(struct sockaddr)。
试图和一个不可达主机进行套接字操作。参见WSAENETUNREACH。
WSAEINPROGRESS (10036) Operation now in progress.

socket错误详解

socket错误详解

WSAEINTR (10004)∙翻译:中断函数调用。

∙说明:阻止操作被中断通过调用WSACancelBlockingCall (Wsapiref_704y.asp)。

WSAEACCES (10013)∙翻译:权限被拒绝。

∙说明:尝试访问套接字访问权限被禁止的方式。

例如,用于发送到广播的地址,但广播的权限未设置通过使用setsockopt(SO_BROADCAST) 时,将发生此错误。

另一个可能导致WSAEACCES 错误的原因是,当调用绑定(Wsapiref_6vzm.asp)函数(在Microsoft Windows NT 4.0 Service Pack 4 [SP4] 或更高版本),另一个程序、服务或内核模式驱动程序绑定到同一地址具有独占访问权。

这种独占的访问是一项新功能的Windows NT 4.0 SP4 和更高版本,并且它使用SO_EXCLUSIVEADDRUSE 选项的实现。

WSAEFAULT (10014)∙翻译:错误的地址。

∙说明:尝试使用指针参数的调用时,系统检测到一个无效的指针地址。

如果程序传递了无效的指针值,或者如果缓冲区的长度太小,则会发生此错误。

例如,如果一个参数,它是一种SOCKADDR 结构的长度小于sizeof(SOCKADDR) 的值,将发生此问题。

WSAEINVAL (10022)∙翻译:无效的参数。

∙说明:setsockopt (Wsapiref_94aa.asp) 函数提供了无效的参数(例如,指定参数的%)。

有时,它也就是从插座的当前状态,调用例如,未在侦听的套接字接受(Wsapiref_13aq.asp)。

WSAEMFILE (10024)∙翻译:打开的文件太多。

∙说明:有太多打开的套接字。

每个实现都可能具有套接字句柄可用的最大数目。

这些句柄可能会提供每个进程的全局,或每个线程。

WSAEWOULDBLOCK (10035)∙翻译:资源暂时不可用。

∙说明:将返回此错误,无法立即完成,例如,非阻塞套接字操作从接收(Wsapiref_2i9e.asp)时无数据排队要从套接字读取。

socket错误码

socket错误码

errno.00 is: Error 0errno.01 is: Not ownererrno.02 is: No such file or directory errno.03 is: No such processerrno.04 is: Interrupted system callerrno.05 is: I/O errorerrno.06 is: No such device or address errno.07 is: Arg list too longerrno.08 is: Exec format errorerrno.09 is: Bad file numbererrno.10 is: No child processeserrno.11 is: Resource temporarily unavailable errno.12 is: Not enough spaceerrno.13 is: Permission deniederrno.14 is: Bad addresserrno.15 is: Block device requirederrno.16 is: Device busyerrno.17 is: File existserrno.18 is: Cross-device linkerrno.19 is: No such deviceerrno.20 is: Not a directoryerrno.21 is: Is a directoryerrno.22 is: Invalid argumenterrno.23 is: File table overflowerrno.24 is: Too many open fileserrno.25 is: Not a typewritererrno.26 is: Text file busyerrno.27 is: File too largeerrno.28 is: No space left on device errno.29 is: Illegal seekerrno.30 is: Read-only file systemerrno.31 is: Too many linkserrno.32 is: Broken pipeerrno.33 is: Argument out of domain errno.34 is: Result too largeerrno.35 is: No message of desired type errno.36 is: Identifier removederrno.37 is: Channel number out of range errno.38 is: Level 2 not synchronized errno.39 is: Level 3 haltederrno.40 is: Level 3 reseterrno.41 is: Link number out of range errno.42 is: Protocol driver not attached errno.43 is: No CSI structure availableerrno.44 is: Level 2 haltederrno.45 is: Deadlock condition if locked errno.46 is: Device not readyerrno.47 is: Write-protected mediaerrno.48 is: Unformatted or incompatible media errno.49 is: No locks availableerrno.50 is: Cannot Establish Connection errno.51 is: Connection Downerrno.52 is: Missing file or filesystemerrno.53 is: Requests blocked by Administrator errno.54 is: Operation would blockerrno.55 is: Operation now in progresserrno.56 is: Operation already in progress errno.57 is: Socket operation on non-socket errno.58 is: Destination address required errno.59 is: Message too longerrno.60 is: Protocol wrong type for socket errno.61 is: Protocol not availableerrno.62 is: Protocol not supportederrno.63 is: Socket type not supportederrno.64 is: Operation not supported on socket errno.65 is: Protocol family not supported errno.66 is: Addr family not supported by protocol errno.67 is: Address already in useerrno.68 is: Can't assign requested address errno.69 is: Network is downerrno.70 is: Network is unreachableerrno.71 is: Network dropped connection on reset errno.72 is: Software caused connection abort errno.73 is: Connection reset by peererrno.74 is: No buffer space availableerrno.75 is: Socket is already connectederrno.76 is: Socket is not connectederrno.77 is: Can't send after socket shutdown errno.78 is: Connection timed outerrno.79 is: Connection refusederrno.80 is: Host is downerrno.81 is: No route to hosterrno.82 is: Restart the system callerrno.83 is: Too many processeserrno.84 is: Too many userserrno.85 is: Too many levels of symbolic links errno.86 is: File name too longerrno.87 is: Directory not emptyerrno.88 is: Disk quota exceedederrno.89 is: Invalid file system control data detected errno.90 is: For future useerrno.91 is: For future useerrno.92 is: For future useerrno.93 is: Item is not local to hosterrno.94 is: For future useerrno.95 is: For future useerrno.96 is: For future useerrno.97 is: For future useerrno.98 is: For future useerrno.99 is: For future useerrno.100 is: For future useerrno.101 is: For future useerrno.102 is: For future useerrno.103 is: For future useerrno.104 is: For future useerrno.105 is: For future useerrno.106 is: For future useerrno.107 is: For future useerrno.108 is: For future useerrno.109 is: Function not implementederrno.110 is: Media surface errorerrno.111 is: I/O completed, but needs relocation errno.112 is: No attribute founderrno.113 is: Security Authentication Denied errno.114 is: Not a Trusted Programerrno.115 is: Too many references: can't splice errno.116 is: Invalid wide charactererrno.117 is: Asynchronous I/O cancellederrno.118 is: Out of STREAMS resourceserrno.119 is: System call timed outerrno.120 is: Next message has wrong typeerrno.121 is: Error in protocolerrno.122 is: No message on stream head read q errno.123 is: fd not associated with a stream errno.124 is: Unsupported attribute valueerrno.125 is: Multihop is not allowederrno.126 is: The server link has been severed errno.127 is: Value too large to be stored in data type打印fangshiint nPrintErrno()/*打印socket错误*/{int i = 0;for(i = 0; i < 256; i++)printf("errno.%02d is: %s\n", i, strerror(i));return 0;}。

Socket编程协议错误代码解析

Socket编程协议错误代码解析

10004‎—WSAEI‎N TR函数调用中‎断。

该错误表明‎由于对WS‎A Canc‎elBlo‎cking‎C all的‎调用,造成了一次‎调用被强行‎中断。

10009‎—WSAEB‎A DF文件句柄错‎误。

该错误表明‎提供的文件‎句柄无效。

在Micr‎o soft‎W i ndo‎wsCE下‎,socke‎t函数可能‎返回这个错‎误,表明共享串‎口处于“忙”状态。

10013‎—WSAEA‎C CES权限被拒。

尝试对套接‎字进行操作‎,但被禁止。

若试图在s‎e ndto‎或WSAS‎e ndTo‎中使用一个‎广播地址,但是尚未用‎s etso‎ckopt‎和SO_B‎R OADC‎A ST这两‎个选项设置‎广播权限,便会产生这‎类错误。

10014‎—WSAEF‎A ULT地址无效。

传给Win‎sock函‎数的指针地‎址无效。

若指定的缓‎冲区太小,也会产生这‎个错误。

10022‎—WSAEI‎N V AL参数无效。

指定了一个‎无效参数。

例如,假如为WS‎A Ioct‎l调用指定‎了一个无效‎控制代码,便会产生这‎个错误。

另外,它也可能表‎明套接字当‎前的状态有‎错,例如在一个‎目前没有监‎听的套接字‎上调用ac‎cept或‎W SAA c‎cept。

10024‎—WSAEM‎F ILE打开文件过‎多。

提示打开的‎套接字太多‎了。

通常,Micro‎soft提‎供者只受到‎系统内可用‎资源数量的‎限制。

10035‎—WSAEW‎O ULDB‎L OCK资源暂时不‎可用。

对非锁定套‎接字来说,如果请求操‎作不能立即‎执行的话,通常会返回‎这个错误。

比如说,在一个非暂‎停套接字上‎调用con‎nect,就会返回这‎个错误。

因为连接请‎求不能立即‎执行。

10036‎—WSAEI‎N PROG‎R ESS操作正在进‎行中。

当前正在执‎行非锁定操‎作。

一般来说不‎会出现这个‎错误,除非正在开‎发16位W‎i nsoc‎k应用程序‎。

SocketError

SocketError
BeginReceive
服务器端口未打开
ConnectionRefused/10061
由于目标计算机积极拒绝,无法连接。
EndConnect
服务器端口未打开
ObjectDisposedException
客户端主动CLOSE时
消息:远程主机强迫关闭了一个现有的连接。
出错地方:.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
环境:当客户端关闭程序时,但客户端主动CLOSE时
消息:远程主机强迫关闭了一个现有的连接。
出错地方:.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
1、UDP
错误类型
发生
地方
错误编码
(SocketErrorCode)
描述
SocketException
服务器
AddressAlreadyInUse
通常每个套接字地址(协议/网络地址/端口)只允许使用一次
2、TCP
错误类型
发生
地方
错误编码
(SocketErrorCode)
描述
环境
SocketException
服务器
AddressAlreadyInUse/10048
通常每个套接字地址(协议/网络地址/端口)只允许使用一次
InvalidArgument/10022
提供了一个无效的参数
.bind()了两次
NotConnected/10057
由于套接字没有连接并且(当使用一个sendto调用发送数据报套接字时)没有提供地址,发送或接收数据的请求没有被接受。
但客户端采用Shutdown(SocketShutdown.Both)时,服务器端EndReceive(iar)=0

最新windowssocket错误码及出错原因

最新windowssocket错误码及出错原因

w i n d o w s s o c k e t错误码及出错原因windows socket错误码及出错原因编程 2009-11-01 14:33:21 阅读1890 评论0 字号:大中小订阅本文转自/khler/archive/2007/07/11/1685023.aspxWindows Sockets在头文件winsock.h中定义了所有的错误码,它们包括以“WSA”打头的Windows Sockets实现返回的错误码和Berkeley Sockets定义的错误码全集。

定义Berkeley Sockets错误码是为了确保原有软件的可移植性。

A.1 Windows Sockets错误码列表表A.1列出了WSAGetLastError()函数返回的可能错误码和它们的解释,它们可分为四个部分。

错误码的第一部分是用来解决在不同的C编译中对标准C错误码的不一致的定义。

错误码的第二部分是标准Berkeley Sockets错误码的Windows Sockets版本。

错误码的第三部分包括特定Windows Sockets扩充的错误码。

错误码的第四部分由Windows Sockets的getXbyY()和WSAAsyncGetXByY()函数返回,相当于Berkeley软件中由变量h_errno返回的错误(事实上,Windows Sockets在头文件winsock.h中已将h_error定义成其值为WSAGetLastError()的一个宏),它们相当于由域名服务(Domain Name Service)返回的各种失败。

如果Windows Sockets实现没有使用域名服务,它将使用最合适的代码。

一般地,Windows Sockets应用程序应该将错误WSAHOST_NOT_FOUND和WSANO_DATA解释为指示关键字(名字,地址等)没有找着,而错误WSATRY_AGAIN和WSANO_RECOVERY是提醒名字服务自身是非操作的。

Socket的错误码和描述

Socket的错误码和描述
WSANO_DATA (11004) Valid name, no data of that type
WSANO_RECOVERY (11003) Non-recoverable query error
WSATRY_AGAIN (11002) Non-authoritative host found
Socket error 10035 - Resource temporarily unavailable // 没有可以获取的资料
Socket error 10036 - Operation now in progress // 一个阻塞操作正在进行中
Socket error 10037 - Operation already in progress // 操作正在进行中
Socket error 10047 - Address family not supported by protocol family//使用的地址族不在支持之列
Socket error 10048 - Address already in use //地址已经被使用
Socket error 10049 - Cannot assign requested address //地址设置失败
WSAHOST_NOT_FOUND (11001) Host not found
WSASYSNOTREADY (10091) Network sub-system is unavailable
WSANOTINITIALISED (10093) WSAStartup() not performed
Socket error 10041 - Protocol wrong type for socket //协议类型错误

常见socket错误返回码

常见socket错误返回码

常见错误返回码(转)() 被中断的系统呼叫当以阻拦式进行的函式被()中断的时候,这个阻拦式函式会得到这个错误讯息。

读者要注意的是,当你的程式有用去中断阻拦式函式的时候,你必须为这个阻拦式函式写处理错误讯息的程式码,否则你的程式可能会出现些无预期的错误。

原则上,所有能以阻拦式进行的函式都可能会发生这个错误。

() 错误的档案代码柏克莱介面中,档案描述子和描述子是相通的,开启可以想像成开启一个档案。

在柏克莱介面的意义是指错误的描述子,这个错误的描述子可能是未经开启的或是以关闭的。

在中有个相通的错误代码,用来指定错误的描述子。

详细说明请参考部分。

() 无此权限对于柏克莱介面函式,这个错误发生的原因通常是开启一个不具有开启权限的档案或。

例如在上,一般的使用者不能开启的,通常是超级使用者( )才有此权限。

如果一般的使用者企图开启的,将会得到这个错误讯息。

对于函式介面,发生此错误的函式有二:()和()。

当利用()或()传送资料的时候,将目的位址设成广播位址( ),但是并未呼叫()设定选项时便会发生错误。

() 错误的记忆体位址系统侦测出使用错误的记忆体位址。

呼叫函式时,常常会有参数是以指标的方式传入,这个指标可能是指向一个结构,如结构,或是指向一个资料缓冲区。

当程式不小心传入一个错误记忆体未指的指标时,就会发生这个错误。

此外,当指标所指向的记忆体区块太小的时候,也会发生这个错误。

() 参数错误如果传入不正确的参数给函式的话,会导致这个错误。

如果参数是一个结构的指标,此结构内容填入不正确的值,也会导致这个错误。

例如,()函式的()参数只能是、或,若是设定成其他数值,就会出现这。

Socket错误码大全

Socket错误码大全

Socket错误码大全errno.00 is: Error 0errno.01 is: Not ownererrno.02 is: No such file or directoryerrno.03 is: No such processerrno.04 is: Interrupted system callerrno.05 is: I/O errorerrno.06 is: No such device or addresserrno.07 is: Arg list too longerrno.08 is: Exec format errorerrno.09 is: Bad file numbererrno.10 is: No child processeserrno.11 is: Resource temporarily unavailableerrno.12 is: Not enough spaceerrno.13 is: Permission deniederrno.14 is: Bad addresserrno.15 is: Block device requirederrno.16 is: Device busyerrno.17 is: File existserrno.18 is: Cross-device linkerrno.19 is: No such deviceerrno.20 is: Not a directoryerrno.21 is: Is a directoryerrno.22 is: Invalid argumenterrno.23 is: File table overflowerrno.24 is: Too many open fileserrno.25 is: Not a typewritererrno.26 is: Text file busyerrno.27 is: File too largeerrno.28 is: No space left on deviceerrno.29 is: Illegal seekerrno.30 is: Read-only file systemerrno.31 is: Too many linkserrno.32 is: Broken pipeerrno.33 is: Argument out of domainerrno.34 is: Result too largeerrno.35 is: No message of desired typeerrno.36 is: Identifier removederrno.37 is: Channel number out of rangeerrno.38 is: Level 2 not synchronizederrno.39 is: Level 3 haltederrno.40 is: Level 3 reseterrno.41 is: Link number out of rangeerrno.42 is: Protocol driver not attachederrno.43 is: No CSI structure availableerrno.44 is: Level 2 haltederrno.45 is: Deadlock condition if locked errno.46 is: Device not readyerrno.47 is: Write-protected mediaerrno.48 is: Unformatted or incompatible media errno.49 is: No locks availableerrno.50 is: Cannot Establish Connection errno.51 is: Connection Downerrno.52 is: Missing file or filesystemerrno.53 is: Requests blocked by Administrator errno.54 is: Operation would blockerrno.55 is: Operation now in progresserrno.56 is: Operation already in progress errno.57 is: Socket operation on non-socket errno.58 is: Destination address required errno.59 is: Message too longerrno.60 is: Protocol wrong type for socket errno.61 is: Protocol not availableerrno.62 is: Protocol not supportederrno.63 is: Socket type not supportederrno.64 is: Operation not supported on socket errno.65 is: Protocol family not supported errno.66 is: Addr family not supported by protocol errno.67 is: Address already in useerrno.68 is: Can't assign requested address errno.69 is: Network is downerrno.70 is: Network is unreachableerrno.71 is: Network dropped connection on reset errno.72 is: Software caused connection abort errno.73 is: Connection reset by peererrno.74 is: No buffer space availableerrno.75 is: Socket is already connectederrno.76 is: Socket is not connectederrno.77 is: Can't send after socket shutdown errno.78 is: Connection timed outerrno.79 is: Connection refusederrno.80 is: Host is downerrno.81 is: No route to hosterrno.82 is: Restart the system callerrno.83 is: Too many processeserrno.84 is: Too many userserrno.85 is: Too many levels of symbolic links errno.86 is: File name too longerrno.87 is: Directory not emptyerrno.88 is: Disk quota exceedederrno.89 is: Invalid file system control data detected errno.90 is: For future useerrno.91 is: For future useerrno.92 is: For future useerrno.93 is: Item is not local to hosterrno.94 is: For future useerrno.95 is: For future useerrno.96 is: For future useerrno.97 is: For future useerrno.98 is: For future useerrno.99 is: For future useerrno.100 is: For future useerrno.101 is: For future useerrno.102 is: For future useerrno.103 is: For future useerrno.104 is: For future useerrno.105 is: For future useerrno.106 is: For future useerrno.107 is: For future useerrno.108 is: For future useerrno.109 is: Function not implementederrno.110 is: Media surface errorerrno.111 is: I/O completed, but needs relocation errno.112 is: No attribute founderrno.113 is: Security Authentication Denied errno.114 is: Not a Trusted Programerrno.115 is: Too many references: can't splice errno.116 is: Invalid wide charactererrno.117 is: Asynchronous I/O cancellederrno.118 is: Out of STREAMS resourceserrno.119 is: System call timed outerrno.120 is: Next message has wrong typeerrno.121 is: Error in protocolerrno.122 is: No message on stream head read q errno.123 is: fd not associated with a stream errno.124 is: Unsupported attribute valueerrno.125 is: Multihop is not allowederrno.126 is: The server link has been severed errno.127 is: Value too large to be stored in data type打印fangshiintnPrintErrno()/*打印socket错误*/ {inti = 0;for(i = 0; i< 256; i++)printf("errno.%02d is: %s\n", i, strerror(i));return 0;}。

socketerror错误类型列表

socketerror错误类型列表

socketerror错误类型列表SOCKET_E2BIG 参数列表太长SOCKET_EACCES 没有许可权限SOCKET_EADDRINUSE 地址已经被使⽤SOCKET_EADDRNOTAVAIL 不能解析请求的地址SOCKET_EADV ⼴播(⼴告)错误SOCKET_EAFNOSUPPORT Address family不⽀持的协议SOCKET_EAGAIN 资源暂时不能获得SOCKET_EALREADY 操作已经在执⾏SOCKET_EBADE ⽆效的交换SOCKET_EBADF 错误的⽂件描述符SOCKET_EBADFD ⽂件描述符错误的状态SOCKET_EBADMSG 错误的消息SOCKET_EBADR ⽆效的请求描述SOCKET_EBADRQC ⽆效的请求代码SOCKET_EBADSLT ⽆效的操作位置SOCKET_EBUSY 驱动或资源繁忙SOCKET_ECHRNG 信道号码超出范围SOCKET_ECOMM 发送通讯错误SOCKET_ECONNABORTED 软件原因导致通⾏中断SOCKET_ECONNREFUSED 连接被拒绝SOCKET_ECONNRESET 连接被相同的socket重置SOCKET_EDESTADDRREQ 必须需要⽬标地址SOCKET_EDQUOT 超出磁盘配额SOCKET_EEXIST ⽂件已存在SOCKET_EFAULT 错误的地址SOCKET_EHOSTDOWN 主机已关闭SOCKET_EHOSTUNREACH 没有路由到主机SOCKET_EIDRM 表⽰ID被删除SOCKET_EINPROGRESS 操作正在执⾏SOCKET_EINTR 系统调⽤被阻⽌SOCKET_EINVAL ⽆效的参数SOCKET_EIO 输⼊/ 输出错误SOCKET_EISCONN 传输终端已经连接SOCKET_EISDIR 是⼀个⽬录SOCKET_EISNAM 是⼀个指定的类型⽂件SOCKET_EL2HLT 级别2已中⽌SOCKET_EL2NSYNC 级别2不同步SOCKET_EL3HLT 级别3已中⽌SOCKET_EL3RST 级别3被重置SOCKET_ELNRNG 连接号超出范围SOCKET_ELOOP 太多级别的符号连接SOCKET_EMEDIUMTYPE 错误的媒介类型(中间类型)SOCKET_EMFILE 太多打开的⽂件SOCKET_EMLINK 太多的连接SOCKET_EMSGSIZE 消息太长SOCKET_EMULTIHOP 尝试次数太多SOCKET_ENAMETOOLONG ⽂件名太长SOCKET_ENETDOWN ⽹络已关闭SOCKET_ENETRESET ⽹络中断,连接被重置SOCKET_ENETUNREACH ⽹络不可达SOCKET_ENFILE 系统中太多打开的⽂件SOCKET_ENOANO 没有正极SOCKET_ENOBUFS 没有可⽤的缓存空间SOCKET_ENOCSI 没有可⽤的CSI结构SOCKET_ENODATA 没有可⽤的数据SOCKET_ENODEV 没有这样的驱动SOCKET_ENOENT 没有这样的⽂件或⽬录SOCKET_ENOLCK 没有可⽤的记录锁SOCKET_ENOLINK 已经有的服务的连接SOCKET_ENOMEDIUM 没有媒介被找到SOCKET_ENOMEM 不能分配内存SOCKET_ENOMSG 没有指定的消息类型SOCKET_ENONET 设备不在⽹络上SOCKET_ENOPROTOOPT 协议不可⽤SOCKET_ENOSPC 没有空间在驱动器SOCKET_ENOSR 超出的流资源SOCKET_ENOSTR 驱动不是⼀个流SOCKET_ENOSYS 函数没有执⾏SOCKET_ENOTBLK 块驱动是必须的SOCKET_ENOTCONN 传输终端没有连接SOCKET_ENOTDIR 没有⼀个⽬录SOCKET_ENOTEMPTY ⽬录为空SOCKET_ENOTSOCK Socket操作在⼀个⾮socket上SOCKET_ENOTTY 不相符的IO控制器SOCKET_ENOTUNIQ 在⽹络上名字不是唯⼀的SOCKET_ENXIO 没有这样的驱动或地址SOCKET_EOPNOTSUPP 操作不⽀持SOCKET_EPERM 操作不允许SOCKET_EPFNOSUPPORT Protocol family不⽀持SOCKET_EPIPE 失败的管道SOCKET_EPROTO 协议错误SOCKET_EPROTONOSUPPORT 协议不⽀持SOCKET_EPROTOTYPE Socket上协议错误的类型SOCKET_EREMCHG 远程地址已改变SOCKET_EREMOTE 对象是远程的SOCKET_EREMOTEIO 远程I/O错误SOCKET_ERESTART 中断的系统调⽤将要重新开始SOCKET_EROFS ⽂件系统为只读SOCKET_ESHUTDOWN. 传输端点中断不能发送SOCKET_ESOCKTNOSUPPORT Socket类型不⽀持SOCKET_ESPIPE 不合法的检索SOCKET_ESTRPIPE 流管道错误SOCKET_ETIME 定时器到时SOCKET_ETIMEDOUT 连接超时SOCKET_ETOOMANYREFS 太多连接⽆法结合SOCKET_EUNATCH ⽆法附加协议驱动SOCKET_EUSERS 太多⽤户SOCKET_EWOULDBLOCK 资源暂时⽆法获得SOCKET_EXDEV ⽆效的交叉驱动连接SOCKET_EXFULL 交换已满。

常见socket错误返回码

常见socket错误返回码

常见SOC‎K ET错误‎返回码(转)WSAEI‎N TR (10004‎)被中断的系‎统呼叫当以阻拦式‎进行的Wi‎n Sock‎函式被WS‎A Canc‎e lBlo‎c king‎C all()中断的时候‎,这个阻拦式‎函式会得到‎W SAEI‎N TR这个‎错误讯息。

读者要注意‎的是,当你的程式‎有用WSA‎C ance‎l Bloc‎k ingC‎a ll去中‎断阻拦式函‎式的时候,你必须为这‎个阻拦式函‎式写处理W‎S AEIN‎T R错误讯‎息的程式码‎,否则你的程‎式可能会出‎现些无预期‎的错误。

原则上,所有能以阻‎拦式进行的‎函式都可能‎会发生这个‎错误。

WSAEB‎A DF (10009‎)错误的档案‎代码柏克莱so‎c ket介‎面中,档案描述子‎和sock‎e t描述子‎是相通的,开启soc‎k et可以‎想像成开启‎一个档案。

WSAEB‎A DF在柏‎克莱soc‎k et介面‎的意义是指‎错误的so‎c ket描‎述子,这个错误的‎s ocke‎t描述子可‎能是未经开‎启的soc‎k et或是‎以关闭的s‎o cket‎。

在WinS‎o ck中有‎个相通的错‎误代码WS‎A ENOT‎S OCK,用来指定错‎误的soc‎k et描述‎子。

详细说明请‎参考WSA‎E NOTS‎O CK部分‎。

WSAEA‎C CES (10013‎)无此权限对于柏克莱‎s ocke‎t介面函式‎,这个错误发‎生的原因通‎常是开启一‎个不具有开‎启权限的档‎案或soc‎k et。

例如在UN‎I X上,一般的使用‎者不能开启‎S OCK_‎R AW的s‎o cket‎,通常是超级‎使用者(super‎user)才有此权限‎。

如果一般的‎使用者企图‎开启SOC‎K_RAW‎的sock‎e t,将会得到这‎个错误讯息‎。

对于Win‎S ock API函式‎介面,发生此错误‎的函式有二‎:send()和send‎t o()。

Socket_错误一览表

Socket_错误一览表

Socket_错误一览表Socket 错误一览表出现网络联机错误Socket error #11001表示您的计算机无法连上服务器,请检查您的Proxy设定以及Proxy相关账号,或暂时取消您防毒软件的「个人防火墙」。

· 出现网络联机错误Socket error #11004应该是网络联机状态问题,请用户检查网络联机是否正常。

· 出现网络联机错误Socket error #10060 Connection Timed Out表示您与服务器发生联机逾时错误,请检查您的Proxy相关设定,以及Proxy Server是否已将SSL 443 port打开。

· 出现网络联机错误Socket error #10061表示服务器忙碌中无法与您建立联机,请稍后再试。

· 出现网络联机错误Socket error #10022请您上网更新Windows操作系统组件。

Windows NT version 4.0的用户请下载安装 Service Pack 5(含)以上。

· 出现Internal Server Error主机忙碌中,请您稍后再试。

· 上传时出现Socket error #10022 Invalid argument.请上网更新Windows操作系统组件(windows update)。

Windows NT version 4.0的用户请下载安装 Service Pack 5(含)以上。

· 上传时出现socket error #10054 Connection reset by peer原因为连接被防火樯或proxy中断"或因为您有安装ip分享器请将ip分享器先拿掉,直接将计算机接adsl的线路后重新上传。

· 上传时出现socket error #10057 Connection reset by peer原因为系统文件被破坏,请进行系统的杀毒,关闭杀毒软件、防火墙。

socket错误码(精品)

socket错误码(精品)

Sockets/Windows Sockets错误码Windows Sockets在头文件winsock.h中定义了所有的错误码,它们包括以“WSA”打头的Windows Sockets实现返回的错误码和Berkeley Sockets定义的错误码全集。

定义Berkeley Sockets错误码是为了确保原有软件的可移植性。

WSAEACCES (10013) Permission denied.试图使用被禁止的访问权限去访问套接字。

例如,在没有使用函数setsockopt()的SO_BROADCAST命令设置广播权限的套接字上使用函数sendto()给一个广播地址发送数据。

WSAEADDRINUSE (10048)Address already in use.正常情况下每一个套接字地址(协议/IP地址/端口号)只允许使用一次。

当应用程序试图使用bind()函数将一个被已存在的或没有完全关闭的或正在关闭的套接字使用了的IP地址/端口号绑扎到一个新套接字上时,该错误发生。

对于服务器应用程序来说,如果需要使用bind()函数将多个套接字绑扎到同一个端口上,可以考虑使用setsockopt()函数的SO_REUSEADDR命令。

客户应用程序一般不必使用bind()函数——connect()函数总是自动选择没有使用的端口号。

当bind()函数操作的是通配地址(包括ADDR_ANY)时,错误WSAEADDRINUSE可能延迟到一个明确的地址被提交时才发生。

这可能在后续的函数如connect()、listen()、WSAConnect()或WSAJoinLeaf()调用时发生。

WSAEADDRNOTAVAIL (10049)Cannot assign requested address.被请求的地址在它的环境中是不合法的。

通常地在bind()函数试图将一个本地机器不合法的地址绑扎到套接字时产生。

它也可能在connect()、sendto()、WSAConnect()、WSAJoinLeaf()或WSASendTo()函数调用时因远程机器的远程地址或端口号非法(如0地址或0端口号)而产生。

Linux中socket错误编码表errno

Linux中socket错误编码表errno

Linux中socket错误编码表errno最近在网络编程使用的过程中,发现errno会经常使用。

因此决定在此做个留用,以备以后使用。

虽然errno是非线程安全的,但是可以通过几种机制保证其安全。

最近在使用的过程中获得了errno,程序无法执行,也不知道如何解决问题。

因此,理解每一个返回的errno整数值的含义是很重要的。

这个我们可以通过strerror函数来实现。

strerror(返回整数errno对应的错误原因的描述字符串)所需头文件: #include<string.h>函数声明: char * strerror(int errnum);输入:整数errno输出:返回描述错误原因的字符串指针功能:用来依参数errnum 的错误代码来查询其错误原因的描述字符串,然后将该字符串指针返回。

示例:#include <string.h>#include <stdio.h>#define NUM 150int main(void){int i;for ( i=0; i<NUM; i++ ){printf( "%d:%s\n", i, strerror(i) );}return 0;}运行结果:0:Success1:Operation not permitted2:No such file or directory3:No such process4:Interrupted system call5:Input/output error6:No such device or address7:Argument list too long8:Exec format error9:Bad file descriptor10:No child processes11:Resource temporarily unavailable 12:Cannot allocate memory13:Permission denied14:Bad address15:Block device required16:Device or resource busy17:File exists18:Invalid cross-device link19:No such device20:Not a directory21:Is a directory22:Invalid argument23:Too many open files in system 24:Too many open files25:Inappropriate ioctl for device 26:Text file busy27:File too large28:No space left on device29:Illegal seek30:Read-only file system31:Too many links32:Broken pipe33:Numerical argument out of domain 34:Numerical result out of range 35:Resource deadlock avoided36:File name too long37:No locks available38:Function not implemented39:Directory not empty40:Too many levels of symbolic links 41:Unknown error 4142:No message of desired type43:Identifier removed44:Channel number out of range 45:Level 2 not synchronized46:Level 3 halted47:Level 3 reset48:Link number out of range49:Protocol driver not attached50:No CSI structure available51:Level 2 halted52:Invalid exchange53:Invalid request descriptor54:Exchange full55:No anode56:Invalid request code57:Invalid slot58:Unknown error 5859:Bad font file format60:Device not a stream61:No data available62:Timer expired63:Out of streams resources64:Machine is not on the network65:Package not installed66:Object is remote67:Link has been severed68:Advertise error69:Srmount error70:Communication error on send71:Protocol error72:Multihop attempted73:RFS specific error74:Bad message75:Value too large for defined data type76:Name not unique on network77:File descriptor in bad state78:Remote address changed79:Can not access a needed shared library80:Accessing a corrupted shared library81:.lib section in a.out corrupted82:Attempting to link in too many shared libraries 83:Cannot exec a shared library directly84:Invalid or incomplete multibyte or wide character 85:Interrupted system call should be restarted 86:Streams pipe error87:Too many users88:Socket operation on non-socket89:Destination address required90:Message too long91:Protocol wrong type for socket92:Protocol not available93:Protocol not supported94:Socket type not supported95:Operation not supported96:Protocol family not supported97:Address family not supported by protocol98:Address already in use99:Cannot assign requested address100:Network is down101:Network is unreachable102:Network dropped connection on reset103:Software caused connection abort104:Connection reset by peer105:No buffer space available106:Transport endpoint is already connected 107:Transport endpoint is not connected108:Cannot send after transport endpoint shutdown 109:Too many references: cannot splice110:Connection timed out111:Connection refused112:Host is down113:No route to host114:Operation already in progress115:Operation now in progress116:Stale NFS file handle117:Structure needs cleaning118:Not a XENIX named type file 119:No XENIX semaphores available 120:Is a named type file121:Remote I/O error122:Disk quota exceeded123:No medium found124:Wrong medium type125:Operation canceled126:Required key not available 127:Key has expired128:Key has been revoked129:Key was rejected by service 130:Owner died131:State not recoverable132:Unknown error 132133:Unknown error 133134:Unknown error 134135:Unknown error 135136:Unknown error 136137:Unknown error 137138:Unknown error 138139:Unknown error 139140:Unknown error 140141:Unknown error 141142:Unknown error 142143:Unknown error 143144:Unknown error 144145:Unknown error 145146:Unknown error 146147:Unknown error 147148:Unknown error 148149:Unknown error 149通过这个我们终于理解errno的含义了。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
sckAddressNotAvailable 10049 来自本地机器的不可用地址
sckNetworkSubsystemFailed 10050 网络子系统失败
sckNetworkUnreachable 10051 当前不能从主机到达网络
sckNetReset 10052 在设置SO_KEEPALIVE时连接超时
WSAEADDRINUSE (10048) Address already in use
WSAECONNABORTED (10053) Software caused connection abort
WSAECONNREFUSED (10061) Connection refused
· 出现网络联机错误Socket error #10060 Connection Timed Out
表示您与服务器发生联机逾时错误,请检查您的Proxy相关设定,以及Proxy Server是否已将SSL 443 port打开。
· 出现网络联机错误Socket error #10061
Socket error 10049 - Cannot assign requested address
Socket error 10050 - Network is down
Socket error 10051 - Network is unreachable
Socket error 10052 - Network dropped connection on reset
sckGetNotSupported 394 属性不可读
sckGetNotSupported 383 属性是只读的
sckBadState 40006 所请求的事务或请求本身的错误协议或者错误连接状态
sckInvalidArg 40014 传递给函数的参数格式不确定,或者不在指定范围内
sckOpCanceled 10004 取消操作
sckInvalidArgument 10014 所请求的地址是广播地址,但未设置标记
sckWouldBlock 10035 套接字不成块,而指定操作将使之成块
sckInProgress 10036 制造块的Winsock操作在进行之中
Socket error 10067 - Too many processes
Socket error 10091 - Network subsystem is unavailable
Socket error 10092 - WINSOCK.DLL version out of range
主机忙碌中,请您稍后再试。
· 上传时出现Socket error #10022 Invalid argument.
请上网更新Windows操作系统组件(windows update)。Windows NT version 4.0
WSAECONNRESET (10054) Connection reset by peer
WSAEDESTADDRREQ (10039) Destination address required
WSAEHOSTUNREACH (10065) No route to host
WSAEMFILE (10024) Too many open files
sckAlreadyComplete 10037 完成操作。未进行制作块的操作
sckNotSocket 10038 描述符不是套接字
sckMsgTooBig 10040 数据太大,不适于缓冲区的要求,因而被截断
sckPortNotSupported 10043 不支持指定的端口
sckAddressInUse 10048 地址在使用中
表示服务器忙碌中无法与您建立联机,请稍后再试。
· 出现网络联机错误Socket error #10022
请您上网更新Windows操作系统组件。Windows NT version 4.0的用户请下载安装 Service Pack 5(含)以上。
· 出现Internal Server Error
Socket error 10053 - Software caused connection abort
Socket error 10054 - Connection reset by peer
Socket error 10055 - No buffer space available
Socket error 10056 - Socket is already connected
Socket error 10057 - Socket is not connected
Socket error 10058 - Cannot send after socket shutdown
sckConnectAborted 10053 由于超时或者其它失败而中止接连
sckConnectionReset 10054 通过远端重新设置连接
sckNoBufferSpace 10055 没有可用的缓存空间
sckAlreadyConnected 10056 已连接的套接字
sckNotConnected 10057 未接连套接字
Socket error 10060 - Connection timed out
Socket error 10061 - Connection refused
Socket error 10064 - Host is down
Socket error 10065 - No route to host
WSANO_DATA (11004) Valid name, no data of that type
WSANO_RECOVERY (11003) Non-recoverable query error
WSATRY_AGAIN (11002) Non-authoritative host found
Socket error 10038 - Socket operation on non-socket
Socket error 10039 - Destination address required
Socket error 10040 - Message too long
Socket error 10041 - Protocol wrong type for socket
Socket error 10046 - Protocol family not supported
Socket error 10047 - Address family not supported by protocol family
Socket error 10048 - Address already in use
Socket 错误一览表
出现网络联机错误Socket error #11001
表示您的计算机无法连上服务器,请检查您的Proxy设定以及Proxy相关账号,或暂时取消您防毒软件的「个人防火墙」。
· 出现网络联机错误Socket error #11004
应该是网络联机状态问题,请用户检查网络联机是否正常。
WSAETIMEDOUT (10060) Connection timed out
WSAHOST_NOT_FOUND (11001) Host not found
WSASYSNOTREADY (10091) Network sub-system is unavailable
WSANOTINITIALISED (10093) WSAStartup() not performed
Socket error 10042 - Bad protocol option
Socket error 10043 - Protocol not supported
Socket error 10044 - Socket type not supported
Socket error 10045 - Operation not supported
sckSuccess 40017 成功
sckUnsupported 40018 不支持的变量类型
sckInvalidOp 40020 在当前状态下的无效操作
sckOutOfRange 40021 参数越界
sckWrongProtocol 40026 所请求的事务或请求本身的错误协议
Socket error 11002 - Non-authoritative host not found
Socket error 11003 - This is a non-recoverable error
Socket error 11004 - Valid name, no data record of requested type
Socket error 10013 - Permission denied(权限被拒绝)
Socket error 10014 - Bad address
Socket error 10022 - Invalid argument
Socket error 10024 - Too many open files
WSAVERNOTSUPPORTED (10092) Wrong WinSock DLL version
在命令提示符下输入:net helpmsg 1xxxx
winsock错误一览表
sckOutOfMemory 7 内存不足
sckInvalidPropertyValue 380 属性值不效
原因为系统文件被破坏,请进行系统的杀毒,关闭杀毒软件、防火墙。
相关文档
最新文档