Implemented feature: cache DNS requests info only until DNS reply is valid (TTL).
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@intra2net.com>
Mon, 18 Apr 2011 10:46:45 +0000 (12:46 +0200)
committerGuilherme Maciel Ferreira <guilherme.maciel.ferreira@intra2net.com>
Mon, 18 Apr 2011 10:46:45 +0000 (12:46 +0200)
commit101be5cec8af2c91499656703aff0f25769f105e
tree92894a9ad9fd9cc3b67b183031304b400e594f00
parentab30405c163c2e5c17f971bb05d9fe901533b599
Implemented feature: cache DNS requests info only until DNS reply is valid (TTL).
- created a class TimeToLive which is self updatable, and can get the ttl updated
- before each ping checks if the address is valid, if not, builds another IP list (which renews the ttl)
src/CMakeLists.txt
src/dns/dnsresolver.cpp
src/dns/dnsresolver.h
src/dns/hostaddress.cpp
src/dns/hostaddress.h
src/dns/timetolive.cpp [new file with mode: 0644]
src/dns/timetolive.h [new file with mode: 0644]
src/host/pingscheduler.cpp