gIpAddr Class Reference

#include <gnet.h>

Inheritance diagram for gIpAddr:

gControl gStorage gTop gHostAddr List of all members.

Public Member Functions

 gIpAddr (char *ipStr=nil)
 gIpAddr (t_uint8 c1, t_uint8 c2, t_uint8 c3, t_uint8 c4)
virtual ~gIpAddr ()
virtual bool IsOk ()
virtual t_ucharString ()
virtual t_ucharToString (t_uchar *uBuf)
t_uint8 GetB1 ()
t_uint8 GetB2 ()
t_uint8 GetB3 ()
t_uint8 GetB4 ()
virtual void Reset ()
virtual void SetAddr (t_gIpAddr nboAddr)
virtual bool SetAddrFromStr (char *str)
virtual t_gIpAddr GetNetworkAddress ()
virtual in_addr_t GetHostAddress ()
virtual int GetHostByName (char *hostname)
virtual int GetHostByAddr (gString &sRes)
gIpAddroperator= (gIpAddr &copy)
virtual void Show (bool doShowAll=true)

Public Attributes

t_uint8 b1
t_uint8 b2
t_uint8 b3
t_uint8 b4

Protected Member Functions

unsigned long thisGetIP (t_uint8 a1, t_uint8 a2, t_uint8 a3, t_uint8 a4)
unsigned long thisGetHostByteOrder (t_gIpAddr netByteOrder)
int thisSetIPfromHostByteOrder (in_addr_t hostByteOrder)
int thisSetIPfromHostEnt (char *h_addr, int h_length)
int thisGetHostByAddr (char *ipStr, gString &sRes, gList &lRes)

Constructor & Destructor Documentation

gIpAddr::gIpAddr char *  ipStr = nil  ) 
 

Definition at line 23 of file gnet.cpp.

gIpAddr::gIpAddr t_uint8  c1,
t_uint8  c2,
t_uint8  c3,
t_uint8  c4
 

Definition at line 32 of file gnet.cpp.

gIpAddr::~gIpAddr  )  [virtual]
 

Definition at line 40 of file gnet.cpp.


Member Function Documentation

t_uint8 gIpAddr::GetB1  )  [inline]
 

Definition at line 40 of file gnet.h.

Referenced by gSocket::SetConnection().

t_uint8 gIpAddr::GetB2  )  [inline]
 

Definition at line 43 of file gnet.h.

Referenced by gSocket::SetConnection().

t_uint8 gIpAddr::GetB3  )  [inline]
 

Definition at line 46 of file gnet.h.

Referenced by gSocket::SetConnection().

t_uint8 gIpAddr::GetB4  )  [inline]
 

Definition at line 49 of file gnet.h.

Referenced by gSocket::SetConnection().

virtual in_addr_t gIpAddr::GetHostAddress  )  [inline, virtual]
 

Definition at line 60 of file gnet.h.

Referenced by gTcpConnect::thisConnect().

int gIpAddr::GetHostByAddr gString sRes  )  [virtual]
 

Definition at line 133 of file gnet.cpp.

int gIpAddr::GetHostByName char *  hostname  )  [virtual]
 

Definition at line 112 of file gnet.cpp.

Referenced by gHostAddr::gHostAddr().

t_gIpAddr gIpAddr::GetNetworkAddress  )  [virtual]
 

Definition at line 106 of file gnet.cpp.

Referenced by GetHostAddress().

bool gIpAddr::IsOk  )  [virtual]
 

Reimplemented from gControl.

Reimplemented in gHostAddr.

Definition at line 44 of file gnet.cpp.

Referenced by gHostAddr::IsOk(), and gHostAddr::String().

gIpAddr & gIpAddr::operator= gIpAddr copy  ) 
 

Definition at line 139 of file gnet.cpp.

void gIpAddr::Reset  )  [virtual]
 

Reimplemented from gControl.

Definition at line 65 of file gnet.cpp.

Referenced by GetHostByName(), and SetAddrFromStr().

void gIpAddr::SetAddr t_gIpAddr  nboAddr  )  [virtual]
 

Definition at line 71 of file gnet.cpp.

Referenced by thisSetIPfromHostByteOrder().

bool gIpAddr::SetAddrFromStr char *  str  )  [virtual]
 

Definition at line 85 of file gnet.cpp.

Referenced by gIpAddr().

void gIpAddr::Show bool  doShowAll = true  )  [virtual]
 

Reimplemented from gStorage.

Reimplemented in gHostAddr.

Definition at line 148 of file gnet.cpp.

Referenced by gHostAddr::Show().

t_uchar * gIpAddr::String  )  [virtual]
 

Reimplemented in gHostAddr.

Definition at line 49 of file gnet.cpp.

Referenced by GetHostByAddr(), Show(), gHostAddr::String(), and ToString().

int gIpAddr::thisGetHostByAddr char *  ipStr,
gString sRes,
gList lRes
[protected]
 

Definition at line 205 of file gnet.cpp.

Referenced by GetHostByAddr().

unsigned long gIpAddr::thisGetHostByteOrder t_gIpAddr  netByteOrder  )  [protected]
 

Definition at line 166 of file gnet.cpp.

Referenced by GetHostAddress().

unsigned long gIpAddr::thisGetIP t_uint8  a1,
t_uint8  a2,
t_uint8  a3,
t_uint8  a4
[protected]
 

Definition at line 153 of file gnet.cpp.

Referenced by GetNetworkAddress().

int gIpAddr::thisSetIPfromHostByteOrder in_addr_t  hostByteOrder  )  [protected]
 

Definition at line 177 of file gnet.cpp.

Referenced by thisSetIPfromHostEnt().

int gIpAddr::thisSetIPfromHostEnt char *  h_addr,
int  h_length
[protected]
 

Definition at line 189 of file gnet.cpp.

Referenced by GetHostByName().

t_uchar * gIpAddr::ToString t_uchar uBuf  )  [virtual]
 

Reimplemented from gControl.

Definition at line 57 of file gnet.cpp.


Member Data Documentation

t_uint8 gIpAddr::b1
 

Definition at line 33 of file gnet.h.

Referenced by GetB1(), GetNetworkAddress(), IsOk(), operator=(), Reset(), SetAddr(), SetAddrFromStr(), and String().

t_uint8 gIpAddr::b2
 

Definition at line 33 of file gnet.h.

Referenced by GetB2(), GetNetworkAddress(), IsOk(), operator=(), Reset(), SetAddr(), SetAddrFromStr(), and String().

t_uint8 gIpAddr::b3
 

Definition at line 33 of file gnet.h.

Referenced by GetB3(), GetNetworkAddress(), IsOk(), operator=(), Reset(), SetAddr(), SetAddrFromStr(), and String().

t_uint8 gIpAddr::b4
 

Definition at line 33 of file gnet.h.

Referenced by GetB4(), GetNetworkAddress(), IsOk(), operator=(), Reset(), SetAddr(), SetAddrFromStr(), and String().


The documentation for this class was generated from the following files:
Generated on Sat Aug 18 02:41:14 2007 for xpfweb_v2x lib by  doxygen 1.4.2