Address4.isAny

0.0.0.0 can represent any address. This function checks whether this address is 0.0.0.0.

struct Address4
const @nogc nothrow pure @safe
bool
isAny
()

Return Value

Type: bool

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

Examples

assert(address4("0.0.0.0").get.isAny());

Meta