def read_long(sock):
    size = struct.calcsize('L')
    data = readblob(sock, size)
    return struct.unpack('L', data)
def read_long(sock):
    size = struct.calcsize('L')
    data = readblob(sock, size)
    return struct.unpack('L', data)