美文网首页
poll的用法

poll的用法

作者: fffwc | 来源:发表于2020-03-06 22:33 被阅读0次

struct pollfd

{

int fd;//文件描述符

short events;//等待的事件   POLLIN/POLLOUT/POLLERR

short reevents;//实际发生的事件,不须赋值

};

int poll(struct pollfd *fds, nfds_t nfds, int timeout);

相关文章

网友评论

      本文标题:poll的用法

      本文链接:https://www.haomeiwen.com/subject/wxvorhtx.html