SIGPIPE error in iOS4 when app is running background and lock screen

被刻印的时光 ゝ 提交于 2019-12-03 09:11:08

I search on google and found my own question 10 months before, that's interesting. I already had a solution for application keep running in background , and setsockopt(sock, SOL_SOCKET, SO_NOSIGPIPE, (void *)&on, sizeof(int)) is useful which will ignore Sigpipe 13 error .

this error happens when the socket already lost physical connection and still try to write data,through Wifi, 3G or Accessory.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!