Re: how to use HTHost_setEventTimeout()

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 UTC