IO模型
Posted zhou09
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了IO模型相关的知识,希望对你有一定的参考价值。
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
以上是关于IO模型的主要内容,如果未能解决你的问题,请参考以下文章