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

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

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

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