Defined in file: hzChain.h

hzIpaddr is a HadronZoo data type representing an IP (v4) address

Constructors/Detructors

hzIpaddr*hzIpaddr(void)
void~hzIpaddr(void)

Public Methods:

const char*AsBytes(void)Populates the supplied buffer with the IP address as a series of 4 bytes. This is for the benefit of network functions. Pointer to the populated buffer
voidClear(void)
const char*Full(void)Populates the supplied buffer with the fully expanded text value of the IP address. This is for the benefit of diagnostics. Pointer to the populated buffer
hzEcodeSetValue(const char* cpIpa)Sets the IP address to the value 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
voidSetValue(uint32_t nIPAddr)
voidSetValue(hzIpaddr& op)
voidSetValue(unsigned char a)unsigned char b, unsigned char c, unsigned char d,

Overloaded operators:

const char*operator const char *(void)
uint32_toperator uint32_t(void)
booloperator!(void)
booloperator!=(hzIpaddr& op)
booloperator!=(uint32_t x)
const char*operator*(void)
booloperator<(hzIpaddr& op)
ostream&operator<<(ostream& os)hzIpaddr& op,
booloperator<=(hzIpaddr& op)
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
hzIpaddr&operator=(hzIpaddr& op)
hzIpaddr&operator=(uint32_t nIPAddr)
booloperator==(hzIpaddr& op)
booloperator==(uint32_t x)
booloperator>(hzIpaddr& op)
booloperator>=(hzIpaddr& op)

Member Variables:

uint32_tm_IpaIP address held as a unsigned 32 bit integer