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 |
| void | Clear | (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 |
| hzEcode | SetValue | (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 |
| void | SetValue | (uint32_t nIPAddr) | |
| void | SetValue | (hzIpaddr& op) | |
| void | SetValue | (unsigned char a)unsigned char b, unsigned char c, unsigned char d, |
Overloaded operators:
| const char* | operator const char * | (void) | |
| uint32_t | operator uint32_t | (void) | |
| bool | operator! | (void) | |
| bool | operator!= | (hzIpaddr& op) | |
| bool | operator!= | (uint32_t x) | |
| const char* | operator* | (void) | |
| bool | operator< | (hzIpaddr& op) | |
| ostream& | operator<< | (ostream& os)hzIpaddr& op, | |
| bool | operator<= | (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) | |
| bool | operator== | (hzIpaddr& op) | |
| bool | operator== | (uint32_t x) | |
| bool | operator> | (hzIpaddr& op) | |
| bool | operator>= | (hzIpaddr& op) |
Member Variables:
| uint32_t | m_Ipa | IP address held as a unsigned 32 bit integer |