summaryrefslogtreecommitdiff
path: root/dns.h
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2014-01-16 20:19:00 +0100
committerTreeki <treeki@gmail.com>2014-01-16 20:19:00 +0100
commita47ea91881c3cca4c8e3bdd3ea13d09886cafa94 (patch)
tree91e9e6ebcbe08044f9594a577b9ad83b186d7868 /dns.h
downloadbounce4-a47ea91881c3cca4c8e3bdd3ea13d09886cafa94.tar.gz
bounce4-a47ea91881c3cca4c8e3bdd3ea13d09886cafa94.zip
initial commit of stuff
Diffstat (limited to '')
-rw-r--r--dns.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/dns.h b/dns.h
new file mode 100644
index 0000000..78ec75f
--- /dev/null
+++ b/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 */