2016年8月18日

fcntl函数介绍

摘要: 1、fcntl:manipulate file descriptor 1)简介:fcntl(file control)函数可执行各种描述符控制操作。 2)正确的使用方法(以设置“非阻塞”标记为例): 3)常用用法: (1)把一个套接字设置为非阻塞型:cmd为F_SETFL,flags“包含”O_NO 阅读全文

posted @ 2016-08-18 22:41 han'er 阅读(5966) 评论(0) 推荐(0) 编辑

导航