Four macros are defined in the header file Winsock2.h for manipulating and checking the descriptor sets. The variable FD_SETSIZE determines the maximum number of descriptors in a set. (The default value of FD_SETSIZE is 64, which can be modified by defining FD_SETSIZE to another value before including Winsock2.h.)
linux下epoll?
多线程就可以了,但是select这种模型很明显不应该用在大用户连接这种应用上
(2)多进程或者多线程的方式,即用多个select去处理,这样就支持更多个连接了
(3)采用poll,或者epoll。
个人觉得用epoll或者windows下的iocp更好