#include<poll.h>
int poll(struct pollfd *fdarray,unsignd long nfds,int timeout);
第一个参数指向一个结构数组第一个元素的指针.每个数组元素都是一个pollfd结构,用于指定测试某个给定描述符fd的条件.
timeout:是毫秒数