Jump to content
  • Advertisement
Sign in to follow this  
md_lasalle

FDSET's content and hosting lots of clients

This topic is 4000 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
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).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!