Using threads when no threads are needed is a sign of very poor design.
The basic idea is this:
In your server implementation:
* Create a list that keeps track of client sockets
* For each new connection, add the socket to the list
* Connect the useful signals of the socket to a slot in your server implementation
* Signals like readyRead() and disconnected()
* Do not use the waitFor... functions




Reply With Quote

Bookmarks