Sets the IP address to the operand provided as a character string. The string must be of the form x.x.x.x where x can be any number between 0 and 255
| Return Type | Function name | Arguments |
|---|---|---|
| hzIpaddr& | hzIpaddr::operator= | (const char*,) |
Declared in file: hzIpaddr.h
Defined in file : hzIpaddr.cpp
Function Logic:
Function body:
hzIpaddr& hzIpaddr::operator= (const char* cpIpa)
{
// Sets the IP address to the operand provided as a character string. The string must be of the form x.x.x.x where x can be any number between 0 and 255
//
// Arguments: 1) cpIpa IP address as a cstr
//
// Returns: Reference to this instance
if (!cpIpa || !cpIpa[0])
m_Ipa = 0;
else
IsIPAddr(m_Ipa, cpIpa) ;
return *this ;
}