摘要: poll同select,用于监控file descriptor事件,推荐用poll的升级版epool来实现功能,但在简单应用中使用poll更方便。 fds是文件描述符集的数组,nfds指定数组元素个数。 pollfd中fd是打开文件的文件描述符;events是输入参数,指定监控事件;revents是 阅读全文
posted @ 2018-01-02 23:20 yuxi_o 阅读(295) 评论(0) 推荐(0)