|
E-MailRelay
|
A static class for getting information about the local machine's network name and address. More...
#include <glocal.h>
Static Public Member Functions | |
| static std::string | hostname () |
| Returns the local hostname. Returns "localhost" on error. | |
| static std::string | canonicalName () |
| Returns the canonical network name assiciated with hostname(). More... | |
| static void | canonicalName (const std::string &override) |
| Sets the canonicalName() override. | |
| static bool | isLocal (const Address &, std::string &reason) |
| Returns true if the given address appears to be associated with the local host, or a helpful error message if not. More... | |
A static class for getting information about the local machine's network name and address.
|
static |
Returns the canonical network name assiciated with hostname().
Defaults to "<hostname>.localnet" if DNS does not provide a canonical network name.
Definition at line 54 of file glocal.cpp.
|
static |
Returns true if the given address appears to be associated with the local host, or a helpful error message if not.
Definition at line 65 of file glocal.cpp.
1.8.9.1