在线笔记
全部博文(596)
发布时间:2013-01-29 10:06:32
int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout); timeout is an upper bound on the amount of time elapsed bef.........【阅读全文】
发布时间:2013-01-28 16:37:30
1 selectselect()系统调用提供一个机制来实现同步多元I/O:#include #include #include int select (int n,fd_set *readfds,fd_set *writefds,fd_set *exceptfds,struct timeval *timeout);FD_CLR(int fd, fd_set *set);FD_ISSET(int fd, fd_set *set);.........【阅读全文】