2 * @brief GNUDIP Service class implementation. This class represents the GNUDIP service.
6 * @copyright Intra2net AG
10 #include "service_gnudip_fullhostname.hpp"
18 * Default Constructor, needed for object serialization.
20 ServiceGnudipFullhostname::ServiceGnudipFullhostname()
27 * @param _hostname The hostname to update
28 * @param _login The login name.
29 * @param _password The corresponding password.
31 ServiceGnudipFullhostname::ServiceGnudipFullhostname(const string& _protocol, const string& _gnudip_server, const string& _hostname, const string& _login, const 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 string& _proxy, const int _proxy_port)
32 : ServiceGnudip(_protocol, _gnudip_server, _hostname, _login, _password, _logger, _update_interval, _max_updates_within_interval, _max_equal_updates_in_succession, _dns_cache_ttl, _proxy, _proxy_port)
40 ServiceGnudipFullhostname::~ServiceGnudipFullhostname()
45 * Get the assembled update url.
46 * @param salt Salt from the initial request
47 * @param time Time from the initial request
48 * @param sign Sign from the initial request
49 * @param secret Computed md5 secret in HEX
50 * @param ip IP to update
51 * @return The assembled update url.
53 string ServiceGnudipFullhostname::assemble_update_url(const string& salt, const string& curr_time, const string& sign, const string& secret, const string& ip) const
60 url.append(curr_time);
64 url.append(get_login());
66 url.append(get_hostname());
69 url.append("&reqc=0&addr=");