37 static std::string result ;
38 static bool first = true ;
42 result =
G::Idn::encode( G::nowide::getComputerNameEx( ComputerNameDnsFullyQualified ) ) ;
static std::string canonicalName()
Returns the ASCII fully qualified domain name associated with hostname().
static std::string hostname()
Returns the local hostname. Returns "localhost" on error.
Contains inline functions that convert to and from UTF-8 strings in order to call wide-character "W()...
std::string encode(std::string_view domain)
Returns the given domain with A-lables.
std::string hostname()
Returns the hostname.