A static class for getting information about the local machine's network name and address.
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.