com.frostwire.jlibtorrent.alerts.DhtReplyAlert 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.dht_reply_alert;
/**
* This alert is generated each time the DHT receives peers from a node. ``num_peers``
* is the number of peers we received in this packet. Typically these packets are
* received from multiple DHT nodes, and so the alerts are typically generated
* a few at a time.
*
* @author gubatron
* @author aldenml
*/
public final class DhtReplyAlert extends TrackerAlert {
DhtReplyAlert(dht_reply_alert alert) {
super(alert);
}
/**
* @return
*/
public int numPeers() {
return alert.getNum_peers();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy