Socket 常见错误码及说明
Socket 常见错误码及说明
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 //请求的类型的名字或数据错误
作者:KurtChow
链接:https://www.jianshu.com/p/b0e4e3df1d32
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· DeepSeek 开源周回顾「GitHub 热点速览」
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了