def dqtoi(dq):
    try:
        s = socket.inet_aton(dq)
    except socket.error as why:
        raise ValueError(why)
    return (ord(s[0]) << 24) + (ord(s[1]) << 16) + (ord(s[2]) << 8) + (ord(s[3]))
Return an integer value given an IP address as dotted-quad string.
dataset/ETHPy150Open kdart/pycopia/core/pycopia/ipv4.py/dqtoi