Main Page | Class Hierarchy | Class List | File List | Class Members

tacpp::ipaddr Class Reference

basic ip addr storage/handle More...

#include <ipaddr.h>

List of all members.

Public Member Functions

unsigned long getIpa ()
 ipaddr (const char *s)
 ipaddr (const string s)
 ipaddr ()
 ~ipaddr ()
unsigned long ips (string i)
string sip (unsigned long i)
void fill (const char *s)
string get ()
int get (int n)
string getn ()
bool operator== (ipaddr a)
bool operator!= (ipaddr a)
bool operator== (const char *a)
bool operator!= (const char *a)
void operator= (ipaddr a)
void operator<< (const char *a)
void operator= (const char *a)


Detailed Description

basic ip addr storage/handle

Author:
rv
Version:
1


Constructor & Destructor Documentation

tacpp::ipaddr::ipaddr const char *  s  )  [inline]
 

store ip addr value

tacpp::ipaddr::ipaddr const string  s  )  [inline]
 

ip addr

tacpp::ipaddr::ipaddr  )  [inline]
 

store localhost ip addr value

tacpp::ipaddr::~ipaddr  )  [inline]
 

destroy


Member Function Documentation

void tacpp::ipaddr::fill const char *  s  )  [inline]
 

fill

int tacpp::ipaddr::get int  n  )  [inline]
 

get ip addr digit value

string tacpp::ipaddr::get  )  [inline]
 

get ip addr string

Returns:
ip addr in string form

unsigned long tacpp::ipaddr::getIpa  )  [inline]
 

return ip addr in unsigned long form

string tacpp::ipaddr::getn  )  [inline]
 

get host name for this addr

Returns:
hostname as string

unsigned long tacpp::ipaddr::ips string  i  )  [inline]
 

change string addr to unsigned long

bool tacpp::ipaddr::operator!= const char *  a  )  [inline]
 

!=

bool tacpp::ipaddr::operator!= ipaddr  a  )  [inline]
 

!=

void tacpp::ipaddr::operator<< const char *  a  )  [inline]
 

fill address with char* string

void tacpp::ipaddr::operator= const char *  a  )  [inline]
 

fill address with char* string

void tacpp::ipaddr::operator= ipaddr  a  )  [inline]
 

copy constructor

bool tacpp::ipaddr::operator== const char *  a  )  [inline]
 

==

bool tacpp::ipaddr::operator== ipaddr  a  )  [inline]
 

compare ==

string tacpp::ipaddr::sip unsigned long  i  )  [inline]
 

change ip addr from unsigned long form to char* with dots


The documentation for this class was generated from the following file:
Generated on Thu Jul 21 23:09:48 2005 for tacppd.kdevelop by doxygen 1.3.5