21 #ifndef G_GNET_LOCAL_H
22 #define G_GNET_LOCAL_H
42 G_EXCEPTION( Error ,
"local domainname/hostname error" ) ;
52 static std::string
fqdn() ;
62 static void fqdn(
const std::string & fqdn_override ) ;
78 static std::string m_fqdn ;
79 static std::string m_fqdn_override ;
80 static bool m_fqdn_override_set ;
81 static Address m_canonical_address ;
82 static std::string fqdnImp() ;
83 static Address canonicalAddressImp() ;
static Address localhostAddress()
A convenience function that returns the "127.0.0.1:0" address.
static std::string hostname()
Returns the hostname.
The Address class encapsulates an IP transport address.
static bool isLocal(const Address &)
Returns true if the given address appears to be local.
static std::string fqdn()
Returns the fully-qualified-domain-name.
A static class for getting information about the local machine's network name and address...
static std::string domainname()
Returns the fqdn()'s domainname.
#define G_EXCEPTION(class_name, description)
define as a function rather than a type if optimising for size
static Address canonicalAddress()
Returns the canonical address associated with hostname().