#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. |
Definition in file timer.h.
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().