Linux网络编程---I/O复用模型之poll

Linux网络编程—I/O复用模型之poll 1.函数poll poll系统调用和select相似,也是在指定时间内轮询必定数量的文件描述符,以测试其中是否有就绪者。linux #include <poll.h> int poll(struct pollfd *fds, nfds_t nfds, int timeout); //返回值:若成功,返回就绪的描述符个数,若超时则为0,若出错则为-1
相关文章
相关标签/搜索