[Qt-interest] Socket communication without threads

R. Reucher rene.reucher at batcom-it.net
Mon Mar 2 19:28:47 CET 2009


On Mon March 2 2009 18:27:04 Predrag Manojlovic wrote:
> I thought that only one client is downloading data...
In fact, at some point the data is "serialized" anyway, and that's called 
multi-plexing. There are better ways to do load-balancing if that's what you 
are afraid of... of course you _CAN_ use QThread's to do what that, but it 
makes live much harder and there's no real use for what you're going to 
achieve.

Instead, just respond to the signals of the QTcpSocket's... it's surely fast 
enough for quite a number of concurrent clients.
-- 
René Reucher
rene.reucher at batcom-it.net
http://www.batcom-it.net/

Birth, n.:
	The first and direst of all disasters.
		-- Ambrose Bierce, "The Devil's Dictionary"




More information about the Qt-interest-old mailing list