2 * @brief DYNS Service class header. This class represents the DYNS service.
6 * @copyright Intra2net AG
13 #include "service.hpp"
15 #include "httphelper.hpp"
17 #include <boost/shared_ptr.hpp>
21 class ServiceDyns : public Service
26 friend class boost::serialization::access;
27 template<class Archive>
28 void serialize(Archive & ar, const unsigned int version)
30 ar & boost::serialization::base_object<Service>(*this);
35 HTTPHelper::Ptr HTTPHelp;
37 std::string assemble_base_url(const std::string& fqhn, const std::string& username, const std::string& password) const;
41 typedef boost::shared_ptr<ServiceDyns> Ptr;
45 ServiceDyns(const std::string& _protocol, const std::string& _hostname, const std::string& _login, const std::string& _password, const Logger::Ptr& _logger, const int _update_interval, const int _max_updates_within_interval, const int _max_equal_updates_in_succession, const int dns_cache_ttl, const std::string& proxy, const int proxy_port);
49 UpdateErrorCode perform_update(const std::string& ip);