poll和epoll实现多路I/O转接

poll int poll(struct pollfd *fds, nfds_t nfds, int timeout); 返回值与select同样 struct pollfd{ int fd; 待监听的文件描述符 short events; 待监听的文件描述符对应的监听事件。取值:POLLIN,POLLOUT,POLLERR short revents; 传入0,若是知足对应
相关文章
相关标签/搜索