41 m_nIPAddr=htonl(inet_addr((
const char*)strIPAddr));
42 m_nNetmask=htonl(inet_addr((
const char*)strNetmask));
50 m_nIPAddr=htonl(inet_addr((
const char*)strIPAddr));
57 m_nNetmask=htonl(inet_addr((
const char*)strNetmask));
83 UINT8 strNetmask[255];
86 strcpy((
char*)strIP,inet_ntoa(addr));
88 strcpy((
char*)strNetmask,inet_ntoa(addr));
89 SINT32 ret=snprintf((
char*)buff,*buffLen,
"%s/%s",strIP,strNetmask);
90 if(ret<=0||((
UINT32)ret)>=*buffLen)
CAIPAddrWithNetmask(const UINT8 *strIPAddr, const UINT8 *strNetmask)
SINT32 setNetmask(const UINT8 *strNetmask)
SINT32 toString(UINT8 *buff, UINT32 *buffLen)
bool equals(const UINT8 *pIPAddr) const
SINT32 setAddr(const UINT8 *strIPAddr)
~CAIPAddrWithNetmask(void)
UINT32 m_nIPAddrAndNetmask
bool equals(UINT32 nIPAddr) const