union io.Address_ip6
Overview
This union holds information about IP6
address More…
import "io_base.jncx" import "io_SocketAddress.jnc" union Address_ip6 { // fields uint16_t bigendian m_i16[]; uint8_t m_i8[]; // methods bool errorcode parse(string_t string); string_t getString() const; // aliases alias toString = getString; alias fromString = parse; };
Detailed Documentation
This union holds information about IP6
address
On the binary level this union directly maps to in6_addr
.
See also:
Fields
uint16_t bigendian m_i16[]
Holds eight 16-bit words of IP6
address.
uint8_t m_i8[]
Holds sixteen 8-bit bytes of IP6
address.
Methods
bool errorcode parse(string_t string)
Constructs the address from a string representation in string
argument.
Returns true
if address string was parsed successfully. Otherwise,
sets the description of parsing error and returns false
[1].
string_t getString() const
Creates and returns a string representation of the address.
Aliases
alias toString = getString
Effectively makes io.Address_ip6
a stringable class.
Footnotes