PDA

View Full Version : server implementation question



Talei
28th April 2012, 17:45
Hello,
I'm implementing multi-client server application and want to ask opinion regarding this mater.

My question is what to use:
Threaded server to handle multiple clients or one threaded server and managing clients using QList container with QTCPSockets?

I just wonder what is better approach to implement server that will send large amount of the data to clients.

Best regards.

Mechan
30th April 2012, 02:10
Take a look at http://www.youtube.com/watch?v=BWEIWViWFwI and http://www.kegel.com/c10k.html.
Use https://github.com/connectedtable/qeventdispatcher_epoll
You can also follow my logic as described here: http://www.qtcentre.org/threads/48633-Slow-QTcpServer-with-lots-of-simultaneous-clients