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,若是知足對應
相關文章
相關標籤/搜索