#include <gnet.h>
Inheritance diagram for gIpAddr:
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_uchar * | String () |
virtual t_uchar * | ToString (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) |
gIpAddr & | operator= (gIpAddr ©) |
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) |
|
|
|
|
|
|
|
Definition at line 40 of file gnet.h. Referenced by gSocket::SetConnection(). |
|
Definition at line 43 of file gnet.h. Referenced by gSocket::SetConnection(). |
|
Definition at line 46 of file gnet.h. Referenced by gSocket::SetConnection(). |
|
Definition at line 49 of file gnet.h. Referenced by gSocket::SetConnection(). |
|
Definition at line 60 of file gnet.h. Referenced by gTcpConnect::thisConnect(). |
|
|
|
Definition at line 112 of file gnet.cpp. Referenced by gHostAddr::gHostAddr(). |
|
Definition at line 106 of file gnet.cpp. Referenced by GetHostAddress(). |
|
Reimplemented from gControl. Reimplemented in gHostAddr. Definition at line 44 of file gnet.cpp. Referenced by gHostAddr::IsOk(), and gHostAddr::String(). |
|
|
|
Reimplemented from gControl. Definition at line 65 of file gnet.cpp. Referenced by GetHostByName(), and SetAddrFromStr(). |
|
Definition at line 71 of file gnet.cpp. Referenced by thisSetIPfromHostByteOrder(). |
|
Definition at line 85 of file gnet.cpp. Referenced by gIpAddr(). |
|
Reimplemented from gStorage. Reimplemented in gHostAddr. Definition at line 148 of file gnet.cpp. Referenced by gHostAddr::Show(). |
|
Reimplemented in gHostAddr. Definition at line 49 of file gnet.cpp. Referenced by GetHostByAddr(), Show(), gHostAddr::String(), and ToString(). |
|
Definition at line 205 of file gnet.cpp. Referenced by GetHostByAddr(). |
|
Definition at line 166 of file gnet.cpp. Referenced by GetHostAddress(). |
|
Definition at line 153 of file gnet.cpp. Referenced by GetNetworkAddress(). |
|
Definition at line 177 of file gnet.cpp. Referenced by thisSetIPfromHostEnt(). |
|
Definition at line 189 of file gnet.cpp. Referenced by GetHostByName(). |
|
Reimplemented from gControl. |
|
Definition at line 33 of file gnet.h. Referenced by GetB1(), GetNetworkAddress(), IsOk(), operator=(), Reset(), SetAddr(), SetAddrFromStr(), and String(). |
|
Definition at line 33 of file gnet.h. Referenced by GetB2(), GetNetworkAddress(), IsOk(), operator=(), Reset(), SetAddr(), SetAddrFromStr(), and String(). |
|
Definition at line 33 of file gnet.h. Referenced by GetB3(), GetNetworkAddress(), IsOk(), operator=(), Reset(), SetAddr(), SetAddrFromStr(), and String(). |
|
Definition at line 33 of file gnet.h. Referenced by GetB4(), GetNetworkAddress(), IsOk(), operator=(), Reset(), SetAddr(), SetAddrFromStr(), and String(). |