Class AnnounceEndpoint
java.lang.Object
com.frostwire.jlibtorrent.AnnounceEndpoint
Announces are sent to each tracker using every listen socket, this class
holds information about one listen socket for one tracker.
This class is a lightweight version of the native announce_endpoint,
and only carries a subset of all the information. However, it's completely
open for custom use or optimization to accommodate client necessities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanenabled()Set to false to not announce from this endpoint.Torrents can be announced using multiple info hashes for different protocol versions.Torrents can be announced using multiple info hashes for different protocol versions.The local endpoint of the listen interface associated with this endpoint.swig()
-
Constructor Details
-
AnnounceEndpoint
-
-
Method Details
-
swig
- Returns:
- the native object
-
localEndpoint
The local endpoint of the listen interface associated with this endpoint.- Returns:
- the local endpoint
-
enabled
public boolean enabled()Set to false to not announce from this endpoint. -
infohashV1
Torrents can be announced using multiple info hashes for different protocol versions.This is for version 1 (SHA1).
- Returns:
- the V1 announce infohash
-
infohashV2
Torrents can be announced using multiple info hashes for different protocol versions.This is for version 2 (truncated SHA-256).
- Returns:
- the V2 announce infohash
-