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
相關文章
相關標籤/搜索