Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

yinhaha

if you use TCP/IP ,do you hava a way let you server be connected thousands clients ..

This topic is 5233 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

if you use TCP/IP protocal,do you hava a way let you server be connected thousands clients ,and high efficney run hello world

Share this post


Link to post
Share on other sites
Advertisement
Huh? Sounds like the right forum to me.

Thousands of TCP/IP sockets are possible on most current server OS-es with modern hardware. However, be prepared to pay a high percentage of your CPU time just to manage the sockets. Use asynchronous APIs where possible, rather than select(), which doesn''t scale well to thousands of connections.

This is the really nice thing about UDP: you only use a single socket; no scalability problem in the kernel to worry about.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!