I just recently found out theres a limit for the number of sockets you can have with select model. The limit is set in FD_SETSIZE and uses fd_set structure.
Since im working on a big application that needs to be able to do 4k+ connections, I need a much bigger limit. What would be the best way to achieve that? I could change the fd_set structure or FD_SETSIZE, or also use more threads for each fdset (1 thread for 64 sockets) but that would be useless and would take too much work and code to do it.
What do you think it would be the best way to do that? I guess making a new fdset structure that would be allocated dynamicly.. I work with win32..
Thanks for help