37 static std::string result ;
38 static bool first = true ;
43 Location location( name.append(
":0") ) ;
45 bool ok = pair.first.empty() ;
46 if( ok && !pair.second.empty() )
49 result = name +
".localnet" ;
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.
A class that represents the remote target for out-going client connections.
static std::pair< std::string, std::string > resolve(Location &, const Config &)
Does synchronous name resolution.
std::string encode(std::string_view domain)
Returns the given domain with A-lables.
std::string hostname()
Returns the hostname.
A configuration structure for GNet::Resolver.