August 17th, 2009, 10:44 AM
I am Programming on an small Chat Server Programm using Winsock...
But now i got stuck in some thinkin issues.
I am wondering how Big Progs like ICQ MSN etc are handling so many users connecting to their servers...
I know that they have really powerfull servers.
even that i know my program wont be used by more than 100 people i am asking myself how i should manage this...
shall i create a thread for any new client with an new socket?
shall i use tcp or udp oder raw sockets
im unsure about managing this part of the program...
September 2nd, 2009, 04:28 PM
Re: Chat Server
IOCP helps alot on that, and, sometimes, large-scale servers manage all those clients with many servers, not just one...
its like a gaming server... if the game gets too big, like a MMORPG server, they have to separate servers into several machines that "communicates" in order to keep the data sync...
i don't know exactly how to explain, but its something like that :P
maybe you can get a better answer from a more experienced guy. lets wait...
Sorry if i said something wrong, i'm learning all those things by myself, and, I'm only 17... xD
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!