标签:
1、五种IO模型
2、select
int select(int maxfdp1, fd_set *restrict readfds, fd_set *restrict writefds, fd_set *restrict exeptfds, struct timeval *restrict timeout); 成功返回就绪fd数目,超时返回0,出错返回-1
几个宏:FD_ISSET FD_CLR FD_SET FD_ZERO
标签:
原文地址:http://www.cnblogs.com/yangzhouyyz/p/5247478.html