1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Added DHCP::hostname.

This commit is contained in:
Matias Fontanini
2014-04-01 10:22:05 -03:00
parent 7c8aefccfe
commit 10421fe945
3 changed files with 35 additions and 1 deletions

View File

@@ -309,6 +309,15 @@ namespace Tins {
* \param name The domain name.
*/
void domain_name(const std::string &name);
/**
* \brief Adds a hostname option.
*
* The new option is appended at the end of the list.
*
* \param name The hostname.
*/
void hostname(const std::string &name);
// Option getters
@@ -423,6 +432,16 @@ namespace Tins {
* \return std::string Containing the domain name.
*/
std::string domain_name() const;
/**
* \brief Searchs for a hostname option.
*
* If the option is not found, an option_not_found exception
* is thrown.
*
* \return std::string Containing the hostname.
*/
std::string hostname() const;
/**
* \brief Getter for the options list.