COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
covise::Host Class Reference

#include <covise_host.h>

Public Member Functions

 Host ()
 
 Host (const char *n, bool numeric=false)
 
 Host (unsigned long a)
 
 Host (const Host &h)
 
 ~Host ()
 
Hostoperator= (const Host &h)
 
uint32_t get_ipv4 () const
 
const char * getName () const
 
const char * getAddress () const
 
bool hasValidName () const
 
bool hasValidAddress () const
 
bool hasRoutableAddress () const
 
void print ()
 

Static Public Member Functions

static std::string lookupHostname (const char *numericIp)
 
static std::string lookupIpAddress (const char *hostname)
 

Private Member Functions

void HostNumeric (const char *n)
 
void HostSymbolic (const char *n)
 
void setAddress (const char *n)
 
void setName (const char *n)
 
void get_char_address (unsigned char *c) const
 
const unsigned char * get_char_address () const
 

Private Attributes

unsigned char char_address [4]
 
char * address
 
bool m_addressValid
 
char * name
 
bool m_nameValid
 

Friends

class Socket
 

Constructor & Destructor Documentation

Host::Host ( )
Host::Host ( const char *  n,
bool  numeric = false 
)
Host::Host ( unsigned long  a)
Host::Host ( const Host h)
Host::~Host ( )

Member Function Documentation

void Host::get_char_address ( unsigned char *  c) const
private
const unsigned char* covise::Host::get_char_address ( ) const
inlineprivate
uint32_t Host::get_ipv4 ( ) const
const char* covise::Host::getAddress ( ) const
inline
const char* covise::Host::getName ( ) const
inline
bool Host::hasRoutableAddress ( ) const
bool Host::hasValidAddress ( ) const
bool Host::hasValidName ( ) const
void Host::HostNumeric ( const char *  n)
private
void Host::HostSymbolic ( const char *  n)
private
std::string Host::lookupHostname ( const char *  numericIp)
static
std::string Host::lookupIpAddress ( const char *  hostname)
static
Host & Host::operator= ( const Host h)
void covise::Host::print ( void  )
inline
void Host::setAddress ( const char *  n)
private
void Host::setName ( const char *  n)
private

Friends And Related Function Documentation

friend class Socket
friend

Member Data Documentation

char* covise::Host::address
private
unsigned char covise::Host::char_address[4]
private
bool covise::Host::m_addressValid
private
bool covise::Host::m_nameValid
private
char* covise::Host::name
private

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