码迷,mamicode.com
首页 > Web开发 > 详细

Avoiding Common Networking Mistakes

时间:2017-10-21 10:57:14      阅读:194      评论:0      收藏:0      [点我收藏+]

标签:oid   lib   sigpipe   work   over   doc   web   overview   pre   

https://developer.apple.com/library/content/documentation/NetworkingInternetWeb/Conceptual/NetworkingOverview/CommonPitfalls/CommonPitfalls.html#//apple_ref/doc/uid/TP40010220-CH4-SW1

 

iOS 记得

signal(SIGPIPE, SIG_IGN);

or

int value = 1;
setsockopt(sock, SOL_SOCKET, SO_NOSIGPIPE, &value, sizeof(value));

 

Avoiding Common Networking Mistakes

标签:oid   lib   sigpipe   work   over   doc   web   overview   pre   

原文地址:http://www.cnblogs.com/hangj/p/7702703.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!