folly::IPAddress::asV6

Converts an IPAddress to an IPAddressV6 instance

Synopsis

Declared in <folly/IPAddress.h>

IPAddressV6 const&
asV6() const;

Description

Throws InvalidAddressFamilyException if the IP Address is not currently a valid V6 instance.

Return Value

A reference to the underlying IPAddressV6 instance.