fd_set struct
时间:2011-02-23 来源:lxgeek
#undef __NFDBITS
#define __NFDBITS (8 * sizeof(unsigned long))
#undef __FD_SETSIZE
#define __FD_SETSIZE 1024
#undef __FDSET_LONGS
#define __FDSET_LONGS (__FD_SETSIZE/__NFDBITS )
typedef struct {
unsigned long fds_bits [__FDSET_LONGS];
} fd_set;
并没有fd_count 和 fd_array,而fd_count和fd_array是在windows的 WinSock2.h 中的。
是有区别的!
相关阅读 更多 +










