merged PingRotate into PingScheduler; fixed save/load of cache to/from file; started...
[pingcheck] / src / dns / resolverbase.h
index 3b0fa09..7ceea42 100644 (file)
@@ -55,13 +55,13 @@ public:
     virtual void cancel_resolve() = 0;
     virtual bool is_resolving() = 0;
 
-    virtual HostAddress get_next_ip() = 0;
+    virtual HostAddress get_next_ip(const bool check_up_to_date=true) = 0;
     virtual bool have_up_to_date_ip() = 0;
     virtual int get_resolved_ip_count() = 0;
 
     std::string get_hostname() const;
 
-    std::string get_skipper() const;
+    std::string get_skip_cname() const;
 
 protected:
     ResolverBase(const IoServiceItem &io_serv,
@@ -80,13 +80,12 @@ protected:
     virtual void do_resolve() = 0;
 
     // convenient forwards to DnsCache that just insert Hostname
-    void update_cache( const HostAddressVec &new_results ) const;
+    void update_cache( const HostAddressVec &new_ips ) const;
     void update_cache( const Cname &cname ) const;
     void update_cache( const std::string &hostname,
-                       const HostAddressVec &new_results ) const;
+                       const HostAddressVec &new_ips ) const;
     void update_cache( const std::string &hostname,
                        const Cname &cname ) const;
-    void update_cache( const uint32_t ttl ) const;
 
     HostAddressVec get_cached_ips_recursively(const std::string host="",
                                        const bool check_up_to_date=false) const;