Address.isLoopback

Determines whether this is a loopback address.

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

Return Value

Type: bool

$(D_KEYWORD true) if this is a loopback address, $(D_KEYWORD false) otherwise.

Examples

assert(Address(Address4.loopback()).isLoopback());
assert(Address(Address6.loopback()).isLoopback());

See Also

$(D_PSYMBOL Address4.loopback), $(D_PSYMBOL Address6.loopback).

Meta