WSocket 错误码

Windows Sockets code  Error  Description  
  ------------------------------------------------------------------------  
  WSAEINTR              10004  Interrupted system call.  
  WSAEBADF              10009  Bad file number.  
  WSEACCES              10013  Permission denied.  
  WSAEFAULT             10014  Bad address.  
  WSAEINVAL             10022  Invalid argument.  
  WSAEMFILE             10024  Too many open files.  
  WSAEWOULDBLOCK        10035  Operation would block.  
  WSAEINPROGRESS        10036  Operation now in progress. This error is 
                                  returned if any Windows Sockets API  
                                  function is called while a blocking  
                                  function is in progress.  
  WSAEALREADY            10037  Operation already in progress.  
  WSAENOTSOCK            10038  Socket operation on nonsocket.  
  WSAEDESTADDRREQ        10039  Destination address required.  
  WSAEMSGSIZE            10040  Message too long.  
  WSAEPROTOTYPE          10041  Protocol wrong type for socket.  
  WSAENOPROTOOPT         10042  Protocol not available.  
  WSAEPROTONOSUPPORT     10043  Protocol not supported.  
  WSAESOCKTNOSUPPORT     10044  Socket type not supported.  
  WSAEOPNOTSUPP          10045  Operation not supported on socket.  
  WSAEPFNOSUPPORT        10046  Protocol family not supported.  
  WSAEAFNOSUPPORT        10047  Address family not supported by protocol  
                                  family.  
  WSAEADDRINUSE          10048  Address already in use.  
  WSAEADDRNOTAVAIL       10049  Cannot assign requested address.  
  WSAENETDOWN            10050  Network is down. This error may be  
                                  reported at any time if the Windows  
                                  Sockets implementation detects an  
                                  underlying failure.  
  WSAENETUNREACH         10051  Network is unreachable.  
  WSAENETRESET           10052  Network dropped connection on reset.  
  WSAECONNABORTED        10053  Software caused connection abort.  
  WSAECONNRESET          10054  Connection reset by peer.  
  WSAENOBUFS             10055  No buffer space available.  
  WSAEISCONN             10056  Socket is already connected.  
  WSAENOTCONN            10057  Socket is not connected.  
  WSAESHUTDOWN           10058  Cannot send after socket shutdown.  
  WSAETOOMANYREFS        10059  Too many references: cannot splice.  
  WSAETIMEDOUT           10060  Connection timed out.  
  WSAECONNREFUSED        10061  Connection refused.  
  WSAELOOP               10062  Too many levels of symbolic links.  
  WSAENAMETOOLONG        10063  File name too long.  
  WSAEHOSTDOWN           10064  Host is down.  
  WSAEHOSTUNREACH        10065  No route to host.  
  WSASYSNOTREADY         10091  Returned by WSAStartup()  indicating that  
                                  the network subsystem is unusable.  
  WSAVERNOTSUPPORTED     10092  Returned by WSAStartup()  indicating that  
                                  the Windows Sockets DLL cannot support  
                                  this application.  
  WSANOTINITIALISED      10093  Winsock not initialized. This message is 
                                  returned by any function except  
                                  WSAStartup()  indicating that a  
                                  successful WSAStartup() has not yet been  
                                  performed.  
  WSAEDISCON             10101  Disconnect.  
  WSAHOST_NOT_FOUND      11001  Host not found. This message indicates 

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/manaya/archive/2009/09/04/4520564.aspx

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值