63 static std::string resolvedHostname() ;
66 static std::string m_name_override ;
67 static bool m_name_override_set ;
The GNet::Address class encapsulates a TCP/UDP transport address.
A static class for getting information about the local machine's network name and address.
static bool isLocal(const Address &, std::string &reason)
Returns true if the given address appears to be 'local', or a helpful error message if not.
static std::string canonicalName()
Returns the canonical network name assiciated with hostname().
static std::string hostname()
Returns the local hostname. Returns "localhost" on error.