(why would anybody search for Cname code in dnscache.cpp?)
std::string Host;
TimeToLive Ttl;
- Cname();
- Cname(const std::string &host, const uint32_t ttl);
- Cname(const std::string &host, const TimeToLive &ttl);
+ Cname() {}
+ Cname(const std::string &host, const uint32_t ttl)
+ : Host(host), Ttl( TimeToLive(ttl) ) {}
+
+ Cname(const std::string &host, const TimeToLive &ttl)
+ : Host(host), Ttl(ttl) {}
// serialization
friend class boost::serialization::access;
{
const int SAVE_TIMER_SECONDS = 60;
const int CACHE_TIME_WARP_THRESH_HOURS = 24;
+ const int CACHE_REMOVE_OUTDATED_DAYS = 60;
}
-// -----------------------------------------------------------------------------
-// Cname
-// -----------------------------------------------------------------------------
-
-Cname::Cname()
- : Host()
- , Ttl()
-{}
-
-Cname::Cname(const std::string &host, const uint32_t ttl)
- : Host( host )
- , Ttl( ttl )
-{}
-
-Cname::Cname(const std::string &host, const TimeToLive &ttl)
- : Host( host )
- , Ttl( ttl )
-{}
-
// -----------------------------------------------------------------------------
// DNS Cache constructor / destructor