IO複用:poll函數

   poll提供的功能與select函數相似,不過在處理流設備時,它可以提供額外的信息 。數組    #include<poll.h>服務器    int  poll(struct pollfd *fdarray,unsigned long nfds,int  timeout);socket        返回:如有就緒的描述符則爲其數目,若超時則爲0,若出錯則爲-1;函數   第一個參數是指向
相關文章
相關標籤/搜索