#include #include /* for gettimeofday(), timeval */ #include class whatsit{ public: std::string dirname; std::string progname; pid_t mypid; timeval now; char* ipvar; char* hostvar; std::string ipbase; std::string ipname; std::string hostname; int mod_age; int ac_age; std::string suffix; std::string progid; int verbosity; whatsit(const std::string name, const std::string _dirname) : dirname(_dirname), progname(name), mypid(getpid()), mod_age(0), ac_age(0), verbosity(0) { gettimeofday(&now, NULL); } int doit(const int penalty, const int stain); // access comes after modification: void update(const std::string msg, const timeval new_mod, const timeval new_ac, const int penalty, const int stain); int setup(); int check_dns(); int check_dns_sub(std::string &addr, std::string &host, std::vector &checked); void dump(const std::string var); };