#include<poll.h>
int poll(struct pollfd *fdarray,unsignd long nfds,int timeout);
第一个参数指向一个结构数组第一个元素的指针.每个数组元素都是一个pollfd结构,用于指定测试某个给定描述符fd的条件.
timeout:是毫秒数
poll函数
原创xiangjie256 博主文章分类:unix c / socket ©著作权
©著作权归作者所有:来自51CTO博客作者xiangjie256的原创作品,请联系作者获取转载授权,否则将追究法律责任
上一篇:Linux远程windows
下一篇:枚举转char
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
(P3)poll:poll函数原型
文章目录1.poll函数原型1.poll函数原型poll与select使用方式一样函数原型#include <poll.;st
服务器 c++ 运维 #include 数组 -
ansible etc目录
Ansible-playbok的核心元素之一;角色 角色(roles): 角色集合: roles/ mysql/ httpd/ nginx/ memcached/ 每个角色,以特定的层级目路结构进行组织; 如; mysql/ -
ansible etc目录 ansible 服务器 memcached 数据库