boost::corosio::ipv6_address::to_string

Return the address as a string.

Synopsis

std::string
to_string() const;

Description

The returned string does not contain surrounding square brackets.

Example

ipv6_address::bytes_type b = {{
        0, 1, 0, 2, 0, 3, 0, 4,
        0, 5, 0, 6, 0, 7, 0, 8 }};
ipv6_address a(b);
assert(a.to_string() == "1:2:3:4:5:6:7:8");

Return Value

The address as a string.

Created with MrDocs