PDA

View Full Version : Multi client tcp server.



jaxrpc
30th May 2010, 19:22
Hi,

i would like to find out if i want to build a multi client tcp server...
what is a good approach in creating such a server?

something like?
for each client connected......create a new thread to handle that connection......


thanks !

tbscope
30th May 2010, 19:23
No need to create threads for each connection.
Just use signals and slots and keep a list of all your connections and don't use the blocking functions

Edit: unless you want to do something very specific. More information is needed