[Qt-interest] Socket communication without threads

Predrag Manojlovic pedjaman at gmail.com
Mon Mar 2 18:27:04 CET 2009


R. Reucher wrote:
> On Mon March 2 2009 17:49:41 Predrag Manojlovic wrote:
>> How can I write network server (multiple connections at same time, like
>> chat server) without threads? That does not sounds possible.
> That was even possible before there was Qt :)... see "man 3 select()".
Hm... let me explain problem on better example:

Let me take Fortune Server as example (without threads):
And let replace fortune string with much larger data like file content.
If i start multiple clients, what will happen?
1. All downloading at same time?
2. One is downloading, other are waiting?

I thought that only one client is downloading data...

Thank you
Predrag



More information about the Qt-interest-old mailing list