class Config

Defined at line 16 of file ../../src/connectivity/network/mdns/service/config.h

Public Methods

void Config ()

Defined at line 27 of file ../../src/connectivity/network/mdns/service/config.h

void ~Config ()

Defined at line 28 of file ../../src/connectivity/network/mdns/service/config.h

bool valid ()

Indicates whether the configuration is valid.

Defined at line 38 of file ../../src/connectivity/network/mdns/service/config.h

std::string error ()

Returns a string describing the error if |valid()| returns true, otherwise

an empty string.

Defined at line 42 of file ../../src/connectivity/network/mdns/service/config.h

bool perform_host_name_probe ()

Indicates whether a probe should be performed for the hostname.

Defined at line 45 of file ../../src/connectivity/network/mdns/service/config.h

const std::vector<Publication> & publications ()

Gets the publications.

Defined at line 50 of file ../../src/connectivity/network/mdns/service/config.h

const std::vector<DnsName> & alt_services ()

Gets the alternate services.

Defined at line 53 of file ../../src/connectivity/network/mdns/service/config.h

void Config (const Config & )

Disallow copy, assign and move.

Defined at line 83 of file ../../src/connectivity/network/mdns/service/config.h

void Config (Config && )

Defined at line 84 of file ../../src/connectivity/network/mdns/service/config.h

Config & operator= (const Config & )

Defined at line 85 of file ../../src/connectivity/network/mdns/service/config.h

Config & operator= (Config && )

Defined at line 86 of file ../../src/connectivity/network/mdns/service/config.h

void ReadConfigFiles (const DnsName & local_host_name, const std::string & serial, const std::string & boot_config_dir, const std::string & config_dir)

Reads the config files from |config_dir|. |local_host_name| is the local host name as

defined by the operating system (e.g. the result of posix's |gethostname|).

The default value for |config_dir| is "/config/data".

Defined at line 101 of file ../../src/connectivity/network/mdns/service/config.cc

Records