summaryrefslogtreecommitdiff
path: root/louloulibs/network/resolver.hpp
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-03-07 17:47:10 +0100
committerlouiz’ <louiz@louiz.org>2017-03-07 17:47:10 +0100
commit6cb7787512a5e02ad2100dbdef734b36d8a8f0d5 (patch)
tree9cd6c5fb78fcfc4766c8e68694ce7bd2a30d2182 /louloulibs/network/resolver.hpp
parentd2f4235ebf8af640fa915e067f0824da0454be87 (diff)
downloadbiboumi-6cb7787512a5e02ad2100dbdef734b36d8a8f0d5.tar.gz
biboumi-6cb7787512a5e02ad2100dbdef734b36d8a8f0d5.tar.bz2
biboumi-6cb7787512a5e02ad2100dbdef734b36d8a8f0d5.tar.xz
biboumi-6cb7787512a5e02ad2100dbdef734b36d8a8f0d5.zip
Small resolver refactor
Makes the codecoverage deterministic (it does not depend on the order of v4/v6 resolution)
Diffstat (limited to 'louloulibs/network/resolver.hpp')
-rw-r--r--louloulibs/network/resolver.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/louloulibs/network/resolver.hpp b/louloulibs/network/resolver.hpp
index 800c7ec..a560819 100644
--- a/louloulibs/network/resolver.hpp
+++ b/louloulibs/network/resolver.hpp
@@ -89,6 +89,10 @@ private:
#ifdef UDNS_FOUND
void on_hostname4_resolved(dns_rr_a4 *result);
void on_hostname6_resolved(dns_rr_a6 *result);
+ /**
+ * Called after one record (4 or 6) has been resolved.
+ */
+ void after_resolved();
void start_timer();