Function Address.toV6

Get the address as an IPv6 address.

ref inout inout(Address6) toV6() pure nothrow @nogc @safe;

This method doesn't convert the address, so the address should be already an IPv6 one.

Returns

IPv6 address.

Precondition

This is an IPv6 address.

Example

auto expected = Address6.loopback;
assert(Address(expected).toV6() == expected);