We have an application (written in C++) running on Linux that listens on a port for an incoming request.
We have a requirement for the same service to listen to many ports ie potentially 10,000's.
I think the only solutions is to setup 10,000 of sockets or is there a more intelligent way of doing this. Is there a feature of the newer kernel that I don't know about?
I would suggest you to have a look at C10K
problem .
Basically the answer depends on what type of stuff your going to do.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.