W3C home > Mailing lists > Public > www-lib@w3.org > April to June 2001

Re: how to use HTHost_setEventTimeout()

From: <Timo.Ross@ic3s.de>
Date: Wed, 27 Jun 2001 17:25:30 +0200
To: Thorsten Rinkenberger <rinkenberger@falkag.de>
Cc: "'www-lib@w3.org'" <www-lib@w3.org>, www-lib-request@w3.org
Message-ID: <OF014737D4.0BDDD0A2-ONC1256A78.00540BE6@ic3s.de>

Hi!

If I understand this function in the right way, you will set a global
timeout for every request. You have to call this function only once after
you have initiate libwww. The function causes to trigger any events after
the time and the request do not finish. It makes only sence if you have
some of these events like a "global after filter" or something else ...

Hope this will help you ?
Timo!



                                                                                                                   
                    Thorsten                                                                                       
                    Rinkenberger          To:     "'www-lib@w3.org'" <www-lib@w3.org>                              
                    <rinkenberger@        cc:     (bcc: Timo Ross/IC3S)                                            
                    falkag.de>            Subject:     how to use HTHost_setEventTimeout()                         
                    Sent by:                                                                                       
                    www-lib-reques                                                                                 
                    t@w3.org                                                                                       
                                                                                                                   
                                                                                                                   
                    27.06.2001                                                                                     
                    16:12                                                                                          
                                                                                                                   
                                                                                                                   




Hi,

I don't know how to use HTHost_setEventTimeout() in the right way. My
program prepares up to 30 requests in a loop using
request = HTRequest_new();
state = HTLoadToFile(URL, request, DumpFile);

After the last request is prepared my program enters the event loop using
HTEventList_newLoop();

What is the correct way to use HTHost_setEventTimeout() in this case?
Should I set the timeout for each request again or only once before
preparing the first request? And what will be a useful value in milli
seconds if each request takes around 20 seconds?
Would anyone be so kind and give me some infos concerning this? Many thanks
in advance and greetings from Germany.

Thorsten
Received on Wednesday, 27 June 2001 11:25:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:39 GMT