quote:
Original post by KalvinB
I'll keep looking into IOCP. The more I think about it though, the more it makes sense to just limit the max connections to around 1000 and run a lobby. The server could handle 10,000 connections I'm sure but the amount of game logic that would need to be processed would bring the CPU to a halt. It's entirely possible to run multiple instances of the server on the same computer.
Still, even with "only" 1000 connections, your
select
would be taking a pretty big slice of the CPU. You'd be surpised at the speed improvement, even with small numbers of users, that I/O CPs can give you. Plus it means you're nice and scaleable if you ever decide to get a dual CPU machine ![](smile.gif)
Edit: By the way, there used to be a really good I/O Completion Port sample in the Platform SDK (it was actually a POP3 server) but it's not in the newest one (which I've got). I think we got a few older sdks at work, so I'll have a look for it when I go there, but if you can get your hands on an older Platform SDK (like one from last year or so), have a look in the "\Samples\netds\WinSock" folder for a POP3 sample. It's really good - better than the iocp sample
![](smile.gif)
codeka.com - Just click it.
[edited by - Dean Harding on June 24, 2002 9:50:50 PM]