Checks if ip
contains a valid IP address of the given family.
family |
<literal>AF_INET</literal> or <literal>AF_INET6</literal>, or <literal>AF_UNSPEC</literal> to accept either |
ip |
an IP address |
true or false |