Check whether the network of an address is currently reachable.
Declared in <netbase.h>
[[nodiscard, requires_capability(0x7fd7492db148), requires_capability(0x7fd74a154c58), requires_capability(0x7fd75b447798), requires_capability(0x7fd756288b78), requires_capability(0x7fd74e243e68), requires_capability(0x7fd755fb8518), requires_capability(0x7fd753e1f928), requires_capability(0x7fd75975d9f8), requires_capability(0x7fd73c877fd8), requires_capability(0x7fd7619b8358), requires_capability(0x7fd754336e98), requires_capability(0x7fd75a3a8b38), requires_capability(0x7fd7629072a8), requires_capability(0x7fd76383bc28), requires_capability(0x7fd758907048)]]
bool
Contains(CNetAddr const& addr) const;
True when the address's network is reachable.
The return value should not be discarded.
| Name | Description |
|---|---|
| addr | The address whose network is tested. |