Socket的错误码和描述(中英文翻译)


//

下面是

Socket Error

的错误码和描述:

 

Socket error 0 - Directly send error 

直接发送错误

 

Socket 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  

// 

打开太多的

sockets  

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

对象在操作

  

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 //

没有成功执行

WSAStartup  

Socket 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 use  

WSAECONNABORTED (10053) Software caused connection abort  

WSAECONNREFUSED (10061) Connection refused  

WSAECONNRESET (10054) Connection reset by peer  

WSAEDESTADDRREQ (10039) Destination address required  

WSAEHOSTUNREACH (10065) No route to host  

WSAEMFILE (10024) Too many open files  

WSAENETDOWN (10050) Network is down  

WSAENETRESET (10052) Network dropped connection  

WSAENOBUFS (10055) No buffer space available  

WSAENETUNREACH (10051) Network is unreachable  

WSAETIMEDOUT (10060) Connection timed out  

WSAHOST_NOT_FOUND (11001) Host not found  

WSASYSNOTREADY (10091) Network sub-system is unavailable  

WSANOTINITIALISED (10093) WSAStartup() not performed  

WSANO_DATA (11004) Valid name, no data of that type  

WSANO_RECOVERY (11003) Non-recoverable query error  

WSATRY_AGAIN (11002) Non-authoritative host found  

WSAVERNOTSUPPORTED (10092) Wrong WinSock DLL version

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值