For what do we need HTEvent_Loop?
Subject: For what do we need HTEvent_Loop?
From: email@example.com (Pim Lemmens)
Date: Wed, 24 Apr 1996 12:00:33 +0200 (MET DST)
Cc: firstname.lastname@example.org (Pim Lemmens)
From email@example.com Wed Apr 24 06: 00:48 1996
X-Mailer: ELM [version 2.4 PL23]
Apparently HTEvent_Loop(HTRequest* request) does not try to down load
the requested object. So that should be done before HTEvent_Loop() is
started. But if the callback funtion invoked upon retrieval of the
object does its own loads, for what do we need the event loop
My problem is the following: I am creating a program that loads
HTML-pages from the net, scans them to find the embedded anchors and
tries to load the associated pages, subject to certain criteria. I
made a callback function that is to be invoked after a page is loaded
and that generates new requests for the embedded links. The first page
is loaded in blocking mode, subsequent pages are loaded non-blocking.
When trying this, I noticed that the requests associated to the first
page are created as expected, but requests originating from the
secondary pages do not appear. That is, when I do not use
HTEvent_Loop(..). So it appearss that for blocking requests the
callback function is invoked, but not for non-blocking requests
(HTRequest-preemptive(..) == NO). When I use HTEvent_Loop() the loop
is only started after a number of requests have already been kicked
off, and it is not clear to me what request should be passed as an
argument to this function.
My questions: Is the event loop needed to invoke any callbacks?
Or is it not needed when callbacks do their own loads?
And what is done to the request that is passed as an argument?
I scanned the documentation but could not find an answer to these
questions. Where can I find them?
Pim Lemmens Mathematics & Computing Science
firstname.lastname@example.org Eindhoven University of Technology
http://www.win.tue.nl/win/cs/is/wsinpim/ P.O. Box 513
tel. (((*31)(0)40)247)3755 5600 MB Eindhoven Netherlands