diff options
Diffstat (limited to 'bouncer/dns.h')
-rw-r--r-- | bouncer/dns.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bouncer/dns.h b/bouncer/dns.h new file mode 100644 index 0000000..78ec75f --- /dev/null +++ b/bouncer/dns.h @@ -0,0 +1,15 @@ +#ifndef DNS_H +#define DNS_H + +#include <sys/types.h> +#include <sys/socket.h> +#include <netdb.h> + +namespace DNS { + void start(); + int makeQuery(const char *name); + void closeQuery(int id); + bool checkQuery(int id, in_addr *pResult, bool *pIsError); +} + +#endif /* DNS_H */ |