[Qt-interest] Socket communication without threads
Scott Aron Bloom
Scott.Bloom at sabgroup.com
Mon Mar 2 18:01:13 CET 2009
>
> Hi, you got me wrong :)
>
> Reason why i said "Only concurrent access" is because at least 100
times
> in list is mentioned that it is not necessary to use threads in
socket
>
> I know it is important. I used threads many times in my applications,
> and i have 7+ years experience in C/C++ programming.
> I'm aware of all possible problems regarding sync.
>
> How can I write network server (multiple connections at same time,
like
> chat server) without threads? That does not sounds possible.
>
>
You should look through the examples...
That said, since most of the QTcpSocket callsare not blocking (and
actually wrap a qthread) its simply not necessary to use your own
threads for the server
Scott
More information about the Qt-interest-old
mailing list