摘要: 关于select中fd限制问题转载自:http://iredfox.diandian.com/post/2009-10-22/7402106select 是多路复用,或异步模型中经常用到的一个系统调用。基本原型为:int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout);该函数的一个缺点就是nfds不能太大。上限为1024.为什么会有这样的限制,今天就来一起看看select的具体实现。再/usr/include/sys/select.h中可以看到sele 阅读全文
posted @ 2013-10-09 18:01 夜塔 阅读(2056) 评论(0) 推荐(0) 编辑