diff options
author | Stef Walter <stef@memberwebs.com> | 2006-08-05 20:48:58 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2006-08-05 20:48:58 +0000 |
commit | 2d975d635f1903a5a5b84ff808b0311d431f9e25 (patch) | |
tree | 04dcb3842e05dadd22764e56fcadc17f0072c632 /daemon/rrdbotd.h | |
parent | 2b77de36782f4906b20b45d695524bbe48c731fc (diff) |
Added asynchronous DNS resolver. See #47
Diffstat (limited to 'daemon/rrdbotd.h')
-rw-r--r-- | daemon/rrdbotd.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/daemon/rrdbotd.h b/daemon/rrdbotd.h index 061beb2..35b3912 100644 --- a/daemon/rrdbotd.h +++ b/daemon/rrdbotd.h @@ -100,8 +100,10 @@ typedef struct _rb_host /* Host resolving and book keeping */ struct sockaddr_any address; - mstime interval; + mstime resolve_interval; + mstime last_resolve_try; mstime last_resolved; + int is_resolved; /* Next in list of hosts */ struct _rb_host* next; @@ -155,6 +157,9 @@ extern rb_state g_state; * UTILITIES (rrdbotd.c) */ +typedef void (*resolve_callback)(void *context, int unused, const char *name, + const unsigned char *addr, size_t addrlen); + void rb_messagex(int level, const char* msg, ...); void rb_message(int level, const char* msg, ...); void rb_vmessage(int level, int err, const char* msg, va_list ap); |