summaryrefslogtreecommitdiff
path: root/louloulibs/network/dns_handler.hpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-10-15 04:32:02 +0200
committerFlorent Le Coz <louiz@louiz.org>2015-10-15 04:32:02 +0200
commitaa340e1c5e4e28397ef212aa210633e9dcb81f98 (patch)
tree688baaa7b13fa1c7e19507a3fef92b8254c87388 /louloulibs/network/dns_handler.hpp
parent1aa2c2d857037f3274297527ca3971a75203d39c (diff)
downloadbiboumi-aa340e1c5e4e28397ef212aa210633e9dcb81f98.tar.gz
biboumi-aa340e1c5e4e28397ef212aa210633e9dcb81f98.tar.bz2
biboumi-aa340e1c5e4e28397ef212aa210633e9dcb81f98.tar.xz
biboumi-aa340e1c5e4e28397ef212aa210633e9dcb81f98.zip
Separate the DNS resolution logic from the TCP communication logic
fix #3137
Diffstat (limited to 'louloulibs/network/dns_handler.hpp')
-rw-r--r--louloulibs/network/dns_handler.hpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/louloulibs/network/dns_handler.hpp b/louloulibs/network/dns_handler.hpp
index ec35374..61e2302 100644
--- a/louloulibs/network/dns_handler.hpp
+++ b/louloulibs/network/dns_handler.hpp
@@ -13,9 +13,6 @@ class DNSSocketHandler;
# include <string>
# include <vector>
-void on_hostname4_resolved(void* arg, int status, int, struct hostent* hostent);
-void on_hostname6_resolved(void* arg, int status, int, struct hostent* hostent);
-
/**
* Class managing DNS resolution. It should only be statically instanciated
* once in SocketHandler. It manages ares channel and calls various
@@ -27,8 +24,8 @@ class DNSHandler
public:
DNSHandler();
~DNSHandler() = default;
- void gethostbyname(const std::string& name, TCPSocketHandler* socket_handler,
- int family);
+ void gethostbyname(const std::string& name, ares_host_callback callback,
+ void* socket_handler, int family);
/**
* Call ares_fds to know what fd needs to be watched by the poller, create
* or destroy DNSSocketHandlers depending on the result.