Re: multi-threads using libwww
"Jerry G. Chiuan" <[email protected]> Tue, 9 Sep 2003 09:35:07 -0700
| Newsgroups | gmane.comp.lib.libwww |
|---|---|
| Message-ID | <006b01c376f0$54258700$25a8a8a8@piglet> |
> In your libwww application, you don't need to worry about how this works in > detail - all you do is start a request. The respective HTLoad() call > returns immediately, and when the response data comes from the server > later, it is passed to your callback function. Hi, sorry, I still don't understand it As I know, if my application only had single thread, this thread would stay in event loop until all respective responses are received ( with regards to all requests ) The application needs to send 2 kinds of requests, one would be held by server and the server responds either there is something which needs to be returned before timeout -or- timeout occurs ( return nothing ). Based on this, the thread needs to wait for the reponse as I mention above, then can keep going down. But it would delay the process for "another" kind of requests. Please clarify it, thanks Regds, - Jerry