Shark Deng

Interactive Designer @Shanju Design in Shanghai

touched caffe / mxnet / python / wordpress / bootstrap / Arduino / Raspberry Pi / webgl / three.js / PIXI / 3dMax

Email

Github

IM – 错误代码

2019-11-19 03:14:01

转载地址:https://blog.csdn.net/hherima/article/details/25406335

 

 

在做iOS 客户端 Server-Client项目的时候,需要Client登录和长连接。所以,网络和socket的问题,变得重要起来。

在网上查阅找一些资料,供网友参考,下面是遇到的一些错误码:

* Domain=NSPOSIXErrorDomain Code = 51 “Network is unreachable”
* Domain=NSPOSIXErrorDomain Code = 54 “Connection reset by peer” 连接复位 “在连接断开后的读和写操作引起的”
* Domain=NSPOSIXErrorDomain Code = 57 “Socket is not connected”
* Domain=NSPOSIXErrorDomain Code = 60 “Operation timed out”
* Domain=NSPOSIXErrorDomain Code = 61 “Connection refused”
* Domain=NSPOSIXErrorDomain Code = 65 “No route to host”

* 更多的错误码在 #include <sys/errno.h>里



——By SharkDeng
如果你喜欢我的文章,欢迎红包赞赏

Leave a Reply

Your email address will not be published. Required fields are marked *