Address.isV4

Determines whether this is an IPv4 address.

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

Return Value

Type: bool

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

Examples

assert(Address(Address4.any()).isV4());

Meta