Annotation of libwww/Library/src/HTTimer.html, revision 2.2
2.1 frystyk 1: <HTML>
2: <HEAD>
3: <!-- Changed by: Henrik Frystyk Nielsen, 16-May-1996 -->
2.2 ! frystyk 4: <TITLE>W3C Reference Library libwww Timer Class</TITLE>
2.1 frystyk 5: </HEAD>
6: <BODY>
7: <H1>
2.2 ! frystyk 8: The Timer Class
2.1 frystyk 9: </H1>
10: <PRE>
11: /*
12: ** (c) COPYRIGHT MIT 1995.
13: ** Please first read the full copyright statement in the file COPYRIGH.
14: */
2.2 ! frystyk 15: </PRE>
! 16: <P>
! 17: The Timer class handles timer for libwww and the application. This works
! 18: exactly as in X where you create a timer object with a callback function
! 19: and a timeout. The callback will be called every time the timer expires.
! 20: <PRE>
! 21: #ifndef HTTIMER_H
! 22: #define HTTIMER_H
2.1 frystyk 23:
24: #include "sysdep.h"
25: #include "HTReq.h"
26:
27: typedef struct _HTTimer HTTimer;
28: typedef int HTTimerCallback (HTTimer *, void *);
2.2 ! frystyk 29: </PRE>
! 30: <H3>
! 31: Create and Delete Timers
! 32: </H3>
! 33: <PRE>
2.1 frystyk 34: extern HTTimer * HTTimer_new (HTTimer *, HTTimerCallback *,
2.2 ! frystyk 35: void *, ms_t millis, BOOL relative);
2.1 frystyk 36: extern BOOL HTTimer_delete (HTTimer * timer);
37: extern BOOL HTTimer_deleteAll (void);
2.2 ! frystyk 38: </PRE>
! 39: <H3>
! 40: Get the next timer in line
! 41: </H3>
! 42: <P>
! 43: Returns the next timer registered in line.
! 44: <PRE>
! 45: extern ms_t HTTimer_soonest (void);
! 46: </PRE>
! 47: <H3>
! 48: Dispatch All Timers that have expired
! 49: </H3>
! 50: <PRE>
2.1 frystyk 51: extern int HTTimer_dispatchAll (void);
2.2 ! frystyk 52: </PRE>
! 53:
! 54: <PRE>
! 55: #endif /* HTTIMER_H */
2.1 frystyk 56: </PRE>
57: <P>
58: <HR>
59: <ADDRESS>
2.2 ! frystyk 60: @(#) $Id: HTTimer.html,v 2.1 1996/12/01 00:26:42 frystyk Exp $
2.1 frystyk 61: </ADDRESS>
62: </BODY></HTML>
Webmaster