Chinaunix首页 | 论坛 | 博客
  • 博客访问: 312367
  • 博文数量: 11
  • 博客积分: 4329
  • 博客等级: 上校
  • 技术积分: 95
  • 用 户 组: 普通用户
  • 注册时间: 2007-01-01 12:03
文章分类

全部博文(11)

文章存档

2016年(4)

2015年(7)

发布时间:2015-12-15 15:09:52

linux下当连接断开,还发数据的时候,不仅send()的返回值会有反映,而且还会向系统发送一个异常消息,如果不作处理,系统会出BrokePipe,程序会退出,这对于服务器提供稳定的服务将造成巨大的灾难。为此,send()函数的最后一个参数可以设MSG_NOSIGNAL,禁止send()函数向系统发送异常消息.........【阅读全文】

阅读(2472) | 评论(0) | 转发(0)

发布时间:2015-11-10 11:57:43

点击(此处)折叠或打开#include <iostream>class Test1{public:    static void getuid()     {   .........【阅读全文】

阅读(3481) | 评论(0) | 转发(0)

发布时间:2015-11-09 10:21:16

The GNU library provides a convenient way to retry a call after a temporary failure, with the macro TEMP_FAILURE_RETRY: — Macro: TEMP_FAILURE_RETRY (expression)This macro evaluates expression once, and examines its value as type long int. If the value equals -1, that indicates a failu.........【阅读全文】

阅读(5917) | 评论(0) | 转发(0)
给主人留下些什么吧!~~

大鬼不动2010-10-24 20:09

回复  |  举报

saintdragon2010-08-15 17:43

回复  |  举报

saintdragon2010-08-13 18:14

回复  |  举报

syuexface2010-06-22 07:54

回复  |  举报

flb_20012010-05-10 07:48

回复  |  举报
留言热议
请登录后留言。

登录 注册