[Qt-interest] A server/client with Qt

Scott Aron Bloom Scott.Bloom at sabgroup.com
Sun May 31 11:01:43 CEST 2009


You are correct.. QHttp is for client side... However, its being
deprecated for the QNetworkAccessManager...  Please look at that code
area...

And yes... the simple Http Server example that's provided in the
examples is a VERY VERY good way to do a server side..

The biggest mistake is putting a thread around the TCP socket classes...
Its just not necessary since the network calls are nonblocking (using OS
specific best implementations (usually a thread hidden from you))


Good luck.. shouldn't be too hard:)

Scott



-----Original Message-----
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Aleksandar Lazic
Sent: Sunday, May 31, 2009 1:46 AM
To: qt-interest at trolltech.com
Subject: [Qt-interest] A server/client with Qt

Dear List,

I want to write a sever/client based tool and yust want to get some
knowledge from the more experienced Qt developer than I'am, due to the
fact that I'am a beginner with the Qt Library.

The application must run on Windows, Linux and Mac, thats the reason why
I decide to go with Qt.

I also must use some dlls from a 3rd party company, which is, for now,
only available under windwos.

I have seen the QHttp* classes but this looks to me that this classes
was designed for 'client' then for server, I'am right?

I thought about to use the

http://www.qtsoftware.com/products/appdev/add-on-products/catalog/4/Util
ities/qtservice/

There is a 'very simple' http-server and this is based on QTcpServer, is
this the 'best' way?

I thought to use the QCoreApplication for the server part and
QApplication for the GUI part. The communication will be done over
tcp-socket.

I plan to use some messaging libs, maybe someone have a good experienced
with a lib for/from Qt?

Maybe

http://www.zeromq.org/
or AMQP
http://en.wikipedia.org/wiki/Advanced_Message_Queuing_Protocol

Maybe someone hade some 'pitfalls' which he/she want to share so that I
don't fall in there ;-)

Many thanks for your help

Aleksandar Lazic
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest




More information about the Qt-interest-old mailing list