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

Re: register Timeout cbf 5.1a

From: Eric Prud'hommeaux <eric@w3.org>
Date: Sun, 20 Apr 1997 03:40:48 -0400 (EDT)
To: Martin Ostrowski <mostrowski@marlowe.iosys.de>
cc: www-lib@w3.org
Message-ID: <Pine.SOL.3.91.970420033205.16678A-100000@anansi>
On Sat, 19 Apr 1997, Martin Ostrowski wrote:

> At the First:
> My First impression from libwww 5.1 a is FAST ! very FAST!
> perhaps it is only an impression, but i have used 4.1 before and
> have very slowly connections with the same urls.

Well, thank you.

> Now my Problem:

There has to be at least one.

> I'm using libwww 5.1a on WIN NT 4.0 with MS VC++ 5.0.
> Everything works fine but i want to register my own timeout handler.
> My old app(using V 4.1) starts HTEventrg_registerTimeout to do this
> job,
> but in libwww 5.1a is no function like this.

The timer stuff has been seperated from the event loop. Please see 
HTTimer.html. You will mostly be interested in 
extern HTTimer * HTTimer_new (HTTimer *, HTTimerCallback *, 
		      void *, ms_t millis, BOOL relative);
which is used fairly extensively in the library. I don't remember testing 
the function for the case where relative is false, but if you stick to 
relative timeouts, it should suite you well. 

> I've found the declaration of HTEventList_registerTimeout in
> HTEvtLst.h,
> but its only declared...

Oops, looks like that shouldn't be in the HTEvtLst header.

Received on Sunday, 20 April 1997 03:40:58 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:47 UTC