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 /common/async-resolver.h | |
parent | 2b77de36782f4906b20b45d695524bbe48c731fc (diff) |
Added asynchronous DNS resolver. See #47
Diffstat (limited to 'common/async-resolver.h')
-rw-r--r-- | common/async-resolver.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/common/async-resolver.h b/common/async-resolver.h new file mode 100644 index 0000000..6b31ff4 --- /dev/null +++ b/common/async-resolver.h @@ -0,0 +1,16 @@ + +#ifndef __ASYNC_RESOLVER_H__ +#define __ASYNC_RESOLVER_H__ + +#include <netdb.h> + +typedef void (*async_resolve_callback)(int ecode, struct addrinfo* ai, void* arg); + +int async_resolver_init(); +void async_resolver_uninit(); + +void async_resolver_queue(const char* hostname, const char* servname, + async_resolve_callback cb, void* arg); + + +#endif /* __ASYNC_RESOLVER_H__ */ |