timer.h File Reference

#include <isc/buffer.h>
#include <isc/lang.h>

Go to the source code of this file.

Defines

#define DNS_TIMER_H   1

Functions

ISC_LANG_BEGINDECLS isc_result_t dns_timer_setidle (isc_timer_t *timer, unsigned int maxtime, unsigned int idletime, isc_boolean_t purge)
 Convenience function for setting up simple, one-second-granularity idle timers as used by zone transfers.


Detailed Description

Definition in file timer.h.


Define Documentation

#define DNS_TIMER_H   1

Definition at line 21 of file timer.h.


Function Documentation

ISC_LANG_BEGINDECLS isc_result_t dns_timer_setidle ( isc_timer_t timer,
unsigned int  maxtime,
unsigned int  idletime,
isc_boolean_t  purge 
)

Convenience function for setting up simple, one-second-granularity idle timers as used by zone transfers.

Set the timer 'timer' to go off after 'idletime' seconds of inactivity, or after 'maxtime' at the very latest. Events are purged iff 'purge' is ISC_TRUE.

Definition at line 37 of file timer.c.

References CHECK, isc_interval_set(), isc_time_nowplusinterval(), isc_timer_reset(), and isc_timertype_once.

Referenced by xfrin_create(), and xfrout_ctx_create().


Generated on Tue Apr 28 17:41:16 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha