com.frostwire.jlibtorrent.alerts.BlockFinishedAlert Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jlibtorrent Show documentation
Show all versions of jlibtorrent Show documentation
A swig Java interface for libtorrent by the makers of FrostWire.
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