UNIX(編程-高級IO):05---IO複用(poll函數)

一、poll函數概念 poll函數類似於select函數,但是接口使用不同 poll函數可用於任何類型的文件描述符 二、poll函數結構 #include <poll.h> int poll(struct pollfd fdarray[], nfds_t nfds, int timeout); 參數1 與select不同,select是創建文件符集,並將文件符集放入參數2,3,4。poll函數是構
相關文章
相關標籤/搜索