(Client._SocketOpen): support IPv6 (AF_INET).

(_get_address_family): new function.