简体   繁体   中英

Linux service to listen on multiple sockets

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM