/* */ #ifndef _D_SERVER_STAT_MAN_H_ #define _D_SERVER_STAT_MAN_H_ #include "common.h" #include #include #include #include "SharedHandle.h" #include "a2time.h" namespace aria2 { class ServerStat; class ServerStatMan { public: ServerStatMan(); ~ServerStatMan(); SharedHandle find(const std::string& hostname, const std::string& protocol) const; bool add(const SharedHandle& serverStat); bool load(std::istream& in); bool save(std::ostream& out) const; void removeStaleServerStat(time_t timeout); private: std::deque > serverStats_; }; } // namespace aria2 #endif // _D_SERVER_STAT_MAN_H_