| LuckyIsDog (7) | |
|
How can I accomplish this? FD_SETSIZE is 1024, so that means I cannot have more than 1024 file descriptors in an FD_SET. I am building a server that needs to handle more than that. I am thinking about an FD_SET vector to accomodate all the connections I will be handling. What troubles me is, how do I do select() on all of the FD_SETs if it is a blocking function? | |
|
|
|
| Cubbi (1567) | |
For handling many connections, you may wish to read http://www.kegel.com/c10k.html old as it is. Specifically, all I/O multiplexing methods other than select() don't have this limitation, but they have other limits that come up when you reach 10k clients.
| |
|
Last edited on
|
|
| DianeBrice (1) | |
| rgtrh | |
|
|
|