头文件:
/* According to POSIX.1-2001 */ #include <sys/select.h> /* According to earlier standards */ #include <sys/time.h> #include <sys/types.h> #include <unistd.h>
接口:
int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout); void FD_CLR(int fd, fd_set *set); int FD_ISSET(int fd, fd_set *set); void FD_SET(int fd, fd_set *set); void FD_ZERO(fd_set *set);
本文出自 “wonder--wander” 博客,请务必保留此出处http://wonderwander.blog.51cto.com/9831934/1617613
原文地址:http://wonderwander.blog.51cto.com/9831934/1617613