All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.frostwire.jlibtorrent.alerts.BlockFinishedAlert Maven / Gradle / Ivy

There is a newer version: 1.2.0.18
Show newest version
package com.frostwire.jlibtorrent.alerts;

import com.frostwire.jlibtorrent.swig.block_finished_alert;

/**
 * This alert is generated when a block request receives a response.
 *
 * @author gubatron
 * @author aldenml
 */
public final class BlockFinishedAlert extends PeerAlert {

    BlockFinishedAlert(block_finished_alert alert) {
        super(alert);
    }

    /**
     * @return the block index
     */
    public int blockIndex() {
        return alert.getBlock_index();
    }

    /**
     * @return the piece index
     */
    public int pieceIndex() {
        return alert.getPiece_index();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy