36 static std::string result ;
37 static bool first = true ;
43 result = ok ? location.
name() : (
hostname()+
".localnet") ;
static std::string canonicalName()
Returns the canonical network name assiciated 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.
std::string name() const
Returns the remote canonical name.
static std::string resolve(Location &)
Does synchronous name resolution.
std::string hostname()
Returns the hostname.