FDSET's content and hosting lots of clients
Hi all.
A small question about fdsets in general. If I'm running on Windows, we all know that the max fdset size by default is 64. If I wanted my windows server to manage lets say 128 clients, would simply having 2 fdsets do the trick ?
Same thing under linux, if I wanted to manage 4000 clients, would 4x1024 fdset be the best way to managed/poll the clients ?
Thank you.
You can either use two fd_sets (one per thread, say), or #define FD_SETSIZE on the command line of the compiler (which means in the Preferences panel for your project in MSVC).
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement