Sign in to follow this  
md_lasalle

FDSET's content and hosting lots of clients

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this