[Qt-interest] QNetworkAccessManager with multi connections ?

Mandeep Sandhu mandeepsandhu.chd at gmail.com
Tue Oct 19 06:36:22 CEST 2010


>        Do QNetworkAccessManager support multi requests ?

Yes.

>        Before it returns an feasible result , sending out lots of requests ,
> and a SLOT used for retrieving those results , is it possible to make it
> work ?

Didn't quite get this. But it's possible to send out multiple requests
using one instance of QNAM. You can connect one of your slots for
processing the replies. You can discern for which req the reply came,
by inspecting the req url (reply->req.url()) or any other attribute
that you might have set in your request.

>
>        Or how can i make a single instance of QNetworkAccessManager into a
> block mode , waits till any result returned ?

If your requirement is to process a reply first before sending out the
next req, then you can simply dispatch the next request only if the
processing of the previous req succeeded.

HTH,
-mandeep

>
>        Many thanks !
>
> - --
> Best Regards,
> Aaron Lewis - PGP: 0xDFE6C29E
> Key Server: http://keyserver.veridis.com
> Finger Print: 9482 448F C7C3 896C 1DFE 7DD3 2492 A7D0 DFE6 C29E
>
> No HTML shits , thanks.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.16 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQIcBAEBAgAGBQJMvQDpAAoJECSSp9Df5sKeeVgQAJNowzEZB0a5lU4VKynUMwuw
> QLLa1bUdbU+uIFN6zyThB1zajBg40o/DUyMN6QuzkNrYHAPTcIicaQzdYpclSJG5
> sA/F/5Mpl75PX792TMV0nADbinqdP0ZS63vIgXlgSCHkalvklg75JFStGG+QQCjO
> QhmvttvqPgSmcxFN/pjkicCse94DUmtptYn4L0hsCHAWwj8nPeTXkN1wrzkFb7WO
> /XOvhrWKd6Xgpfk8Pnxvj0/3tkblWsdRJm5Ho4MATMDeEGxFLeqBvevWryEvN+PJ
> GM+gSvnhLweNZioprNtXfl5X72eW91V/YKFm+FAwyUOLTegNvGjbhOiWert7qmX2
> h2ceEqg8edSsBOQfagPntJA5oypmmNQGRzZhJofqqJuCCt34HQWBzuMyAVID6khu
> ceDk4l7cUFedpb7Xpo7G9JAIl6FsLlmK9WwprX3jPCDzQKYO1vGttIL3xvugTsUo
> wkcucaJ5HO4g+ZAW0dkt14JPAsJK39yutHpiLBt644Ey5/NJpZhkp8CgvtR6dbm/
> nKRoJ1jlay9+u8OQRa50q0z5siA0G9VZsjez7DoyGDaLKjMR5goZIyn+MN9YuCYw
> aIvbeM4FWS3KpGZB3XFEGsx3wCiX/koV4t3oyR+6FNt798NC6p43Wl3ZwJLPS2WB
> bxzQLhyChrlP8QSG0kbi
> =QxDj
> -----END PGP SIGNATURE-----
> _______________________________________________
> 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