fd_set结构的理解
2010-05-08 13:57
295 查看
"/usr/include/sys/select.h" 中是这样定义结构 fd_set 的: typedef struct { /* XPG4.2 requires this member name. Otherwise avoid the name from the global namespace. */ #ifdef __USE_XOPEN __fd_mask fds_bits[__FD_SETSIZE / __NFDBITS]; # define __FDS_BITS(set) ((set)->fds_bits) #else __fd_mask __fds_bits[__FD_SETSIZE / __NFDBITS]; # define __FDS_BITS(set) ((set)->__fds_bits) #endif } fd_set |
相关文章推荐
- 理解select模型的关键在于理解fd_set
- 操作fd_set结构体的宏(其实,你也可以理解为函数,只要你喜欢)
- python中的signal.set_wakeup_fd的理解
- FD_ZERO、FD_SET与FD_ISSET套接字的一些理解
- 函数 __FD_SET(unsigned long fd, __kernel_fd_set *fdsetp) 的理解
- 从Java视角理解系统结构(二)CPU缓存
- 深入浅出理解索引结构
- STM32固件库文件编程结构思想的理解
- 深入理解JVM内幕:从基本结构到Java 7新特性
- 张鹏 带你一周hold住htmlcss 第16讲 css理解表现与结构相分离!
- Redis set setnx increase 的理解
- [iOS] objc_setAssociatedObject objc_getAssociatedObject 简单明了的一个理解
- 理解bitops中的__set_bit及其应用
- 深入理解mysql SET NAMES和mysql(i)_set_charset的区别
- 理解SetWindowOrg,SetViewportOrg,SetWindowExt,SetViewportExt
- 深入理解Java虚拟机笔记---运行时栈帧结构
- 深入理解计算机系统第六章--存储器层次结构与性能
- Android中ActionBar的setDisplayHomeAsUpEnabled、setHomeButtonEnabled和setDisplayShowHomeEnabled方法的理解
- 深入理解linux系统的目录结构(总结的非常详细)
- select()函数以及FD_ZERO、FD_SET、FD_CLR、FD_ISSET