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

Started by
1 comment, last by yinhaha 20 years, 2 months ago
if you use TCP/IP protocal,do you hava a way let you server be connected thousands clients ,and high efficney run hello world
hello world
Advertisement
Wrong forum.
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.
enum Bool { True, False, FileNotFound };

This topic is closed to new replies.

Advertisement