* Checks of this address is of the given family. * @param family the family to check against * @return true if it is of the given family */
| 131 | * @return true if it is of the given family |
| 132 | */ |
| 133 | bool NetworkAddress::IsFamily(int family) |
| 134 | { |
| 135 | if (!this->IsResolved()) { |
| 136 | this->Resolve(family, SOCK_STREAM, AI_ADDRCONFIG, nullptr, ResolveLoopProc); |
| 137 | } |
| 138 | return this->address.ss_family == family; |
| 139 | } |
| 140 | |
| 141 | /** |
| 142 | * Checks whether this IP address is contained by the given netmask. |
no test coverage detected