rasdaman complete source
|
#include <akgnet_inetaddr.hh>
Public Member Functions | |
HostAddress () throw () | |
Default constructor, creating an 'invalid' object. More... | |
HostAddress (const HostAddress &) | |
Copy constructor. More... | |
HostAddress (uint32_t) | |
Constructor taking a 32-bit internet address. More... | |
HostAddress (const char *theHostName) | |
~HostAddress () throw () | |
Destructor. More... | |
bool | isValid () const throw () |
Returns true if the object was initialized correctly. More... | |
const char * | getFullHostName () const throw () |
Returns the full host name, meaning hostname.domainname. More... | |
const char * | getShortHostName () const throw () |
Returns the short form of the host name. More... | |
uint32_t | getAddress () const throw () |
Returns the IP-Address as a 32-bit value. More... | |
const char * | getStringAddress () const throw () |
Returns the string representation of the IP-Address. More... | |
Static Public Attributes | |
static const uint32_t | addrLocalhost = INADDR_LOOPBACK |
static const uint32_t | addrBroadcast = INADDR_BROADCAST |
static const uint32_t | addrAny = INADDR_ANY |
static const uint32_t | addrNone = INADDR_NONE |
This class represents the internet address of a computer and envelops the OS data structure 'in_addr' Important: new is supposed to throw
akg::HostAddress::HostAddress | ( | ) | ||
throw | ( | |||
) |
Default constructor, creating an 'invalid' object.
akg::HostAddress::HostAddress | ( | const HostAddress & | ) |
Copy constructor.
akg::HostAddress::HostAddress | ( | uint32_t | ) |
Constructor taking a 32-bit internet address.
akg::HostAddress::HostAddress | ( | const char * | theHostName | ) |
Constructor taking a string representation of the address It can be the the name or the internet address Assert: theHostName != 0
akg::HostAddress::~HostAddress | ( | ) | ||
throw | ( | |||
) |
Destructor.
uint32_t akg::HostAddress::getAddress | ( | ) | const | |
throw | ( | |||
) |
Returns the IP-Address as a 32-bit value.
const char* akg::HostAddress::getFullHostName | ( | ) | const | |
throw | ( | |||
) |
Returns the full host name, meaning hostname.domainname.
const char* akg::HostAddress::getShortHostName | ( | ) | const | |
throw | ( | |||
) |
Returns the short form of the host name.
const char* akg::HostAddress::getStringAddress | ( | ) | const | |
throw | ( | |||
) |
Returns the string representation of the IP-Address.
bool akg::HostAddress::isValid | ( | ) | const | |
throw | ( | |||
) |
Returns true if the object was initialized correctly.
|
static |
|
static |
|
static |
|
static |