hi all,
have a client server application.
the server starts a thread for each client.
now when a thread received data from its client, it passes the data to the server which in turn checks the data and broadcasts it to all clients using the threads' sockets created in their run() methods.
well, i heard (i think jacek wrote so in the old qt forum) that this shouldn't be done. but why? up to now i didn't experience any crashes that could have been caused by that...
what alternative should i prefer?
if i write a public function like ServerThread::write(QByteArray&) which the server can call, this wouldn't make any difference since this would be processed in the server's thread any way...would it?
i hope the way i expressed it is not too confusing ;-)
thanks for any replies
smalls
Bookmarks