VideoTools
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
GNet::Local Class Reference

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.
 
static std::string canonicalName ()
 Returns the canonical network name assiciated with hostname().
 
static void canonicalName (const std::string &override)
 Sets the canonicalName() override.
 
static std::string name ()
 Returns canonicalName(), or hostname() if canonicalName() is the empty string. More...
 
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...
 

Detailed Description

A static class for getting information about the local machine's network name and address.

Definition at line 39 of file glocal.h.

Member Function Documentation

bool GNet::Local::isLocal ( const Address address,
std::string &  reason 
)
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 68 of file glocal.cpp.

std::string GNet::Local::name ( )
static

Returns canonicalName(), or hostname() if canonicalName() is the empty string.

Definition at line 63 of file glocal.cpp.


The documentation for this class was generated from the following files: