def addr_family(ip):
    addrs = socket.getaddrinfo(ip, 0, 0, socket.SOCK_STREAM, socket.IPPROTO_TCP, socket.AI_NUMERICHOST)
    return addrs[0][0]
Return the address family of an IP address. Raises socket.gaierror if ip
dataset/ETHPy150Open arlolra/flashproxy/flashproxy/util.py/addr_family