asio C++ library

PrevUpHomeNext

ip::address_cast (3 of 9 overloads)

Cast a version-independent address to an IPv6 address.

template<
    typename T>
T address_cast(
    const address & addr,
    typename enable_if< is_same< T, address_v6 >::value >::type *  = 0);
Exceptions

bad_address_cast

if a does not represent an IPv6 address.


PrevUpHomeNext