FDSET's content and hosting lots of clients

Started by
1 comment, last by md_lasalle 16 years, 8 months ago
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.
Advertisement
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).
enum Bool { True, False, FileNotFound };
thank you for the reply.

This topic is closed to new replies.

Advertisement