def METHOD_NAME(array):
    host, port = array.split(":")
    # convert host from mangled-per-four-bytes form as used by kernel
    host = unhexlify(host)
    host_out = ""
    for x in range(0, len(host) // 4):
        (val,) = struct.unpack("=I", host[x * 4 : (x + 1) * 4])
        host_out += "%08x" % val
    return host_out, int(port, 16)