Hello


Im working on a huge server on windows and im not sure what approach for multiclients should I use.. I know multithreading is not good, so I've been using non-blocking sockets until now (1 thread), which has limitation but this can be easily changed..

I wondered what do you guys think about IOCP framework on windows? It runs more threads to handle all connections, not one for each.. Is it better than select() method using nonblocking sockets? If not, why so?

Thanks for answers

Recommended Answers

All 3 Replies

How many maximum clients do you expect to handle at a given time? All depends on that.

How many maximum clients do you expect to handle at a given time? All depends on that.

More than 8000..

Well for that much of requests, I think I/O Completion Ports should be the best method to use.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.