com.frostwire.jlibtorrent.alerts.MetadataFailedAlert 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.ErrorCode;
import com.frostwire.jlibtorrent.swig.metadata_failed_alert;
/**
* This alert is generated when the metadata has been completely received and the info-hash
* failed to match it. i.e. the metadata that was received was corrupt. libtorrent will
* automatically retry to fetch it in this case. This is only relevant when running a
* torrent-less download, with the metadata extension provided by libtorrent.
*
* @author gubatron
* @author aldenml
*/
public final class MetadataFailedAlert extends TorrentAlert {
MetadataFailedAlert(metadata_failed_alert alert) {
super(alert);
}
/**
* The error that occurred.
*
* @return
*/
public ErrorCode getError() {
return new ErrorCode(alert.getError());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy