Class AnnounceEntry
java.lang.Object
com.frostwire.jlibtorrent.AnnounceEntry
This class holds information about one bittorrent tracker, as it
relates to a specific torrent.
-
Constructor Summary
ConstructorsConstructorDescriptionAnnounceEntry(String url) Constructs a tracker announce entry withuas the URL. -
Method Summary
Modifier and TypeMethodDescriptionintThe max number of failures to announce to this tracker in a row, before this tracker is not used anymore.voidfailLimit(short value) booleanSet to true the first time we receive a valid response from this tracker.intsource()A bitmask specifying which sources we got this tracker from.swig()inttier()The tier this tracker belongs to.voidtier(short value) The current&trackerid=argument passed to the tracker.voidurl()Tracker URL as it appeared in the torrent file.void
-
Constructor Details
-
AnnounceEntry
- Parameters:
e- the native object
-
AnnounceEntry
Constructs a tracker announce entry withuas the URL.- Parameters:
url- the tracker url
-
-
Method Details
-
swig
- Returns:
- the native object
-
endpoints
-
url
-
url
-
trackerId
The current&trackerid=argument passed to the tracker. this is optional and is normally empty (in which case no trackerid is sent).- Returns:
- the trackerid url argument
-
trackerId
-
tier
public int tier()The tier this tracker belongs to.- Returns:
- the tier number
-
tier
public void tier(short value) -
failLimit
public int failLimit()The max number of failures to announce to this tracker in a row, before this tracker is not used anymore. 0 means unlimited.- Returns:
- the max number of failures allowed
-
failLimit
public void failLimit(short value) -
source
public int source()A bitmask specifying which sources we got this tracker from.- Returns:
- the source bitmask
-
isVerified
public boolean isVerified()Set to true the first time we receive a valid response from this tracker.- Returns:
- if the tracker has received a valid response
-