poll函数
#include <poll.h>
int poll(struct pollfd *fds, nfds_t nfds, int timeout);
參數:
- fds:監聽的文件描述符【數組】
- nfds:監聽數組的,實際有效監聽個數
- 超時時長。單位:毫秒
?
總結
- 上一篇: 基本TCP套接字编程
- 下一篇: 光遇手游雨林彩虹下的蜡烛位置在哪