PingReplyTimeout( 30 ),
MaxAddressResolutionAttempts( 10 ),
ResolvedIpTtlThreshold( 10 ),
+ MinTimeBetweenResolves( 10 ),
DnsCacheFile(""),
Hosts(),
RatioRandomHosts( 1.0f ),
ResolvedIpTtlThreshold = resolved_ip_ttl_threshold;
}
+int Configuration::get_min_time_between_resolves() const
+{
+ return MinTimeBetweenResolves;
+}
+void Configuration::set_min_time_between_resolves( const int min_time_between_resolves )
+{
+ BOOST_ASSERT(min_time_between_resolves >= 0 );
+ MinTimeBetweenResolves = min_time_between_resolves;
+}
+
void Configuration::set_dns_cache_file( const std::string &dns_cache_file)
{
BOOST_ASSERT( !dns_cache_file.empty() );