Address.isV6

Determines whether this is an IPv6 address.

struct Address
const @nogc nothrow pure @safe
bool
isV6
()

Return Value

Type: bool

$(D_KEYWORD true) if this is an IPv6 address, $(D_KEYWORD false) otherwise.

Examples

assert(Address(Address6.any()).isV6());

Meta