Packages that use TrackerClient.TCTracker
Package
Description
I2P version of the Snark BitTorrent client, enhanced for I2P: peers are I2P destinations, torrents can be served anonymously as hidden services, and metadata carries I2P-specific comment fields.
Uses of TrackerClient.TCTracker in org.klomp.snark
Fields in org.klomp.snark declared as TrackerClient.TCTrackerModifier and TypeFieldDescriptionprivate final TrackerClient.TCTrackerTrackerClient.Unannouncer.trThe tracker being unannounced.Fields in org.klomp.snark with type parameters of type TrackerClient.TCTrackerModifier and TypeFieldDescriptionprivate final List<TrackerClient.TCTracker> TrackerClient.backupTrackersBackup trackers used when the others fail.private final List<TrackerClient.TCTracker> TrackerClient.trackersThe active trackers for this torrent.Methods in org.klomp.snark with parameters of type TrackerClient.TCTrackerModifier and TypeMethodDescriptionprivate TrackerInfoTrackerClient.doRequest(TrackerClient.TCTracker tr, long uploaded, long downloaded, long left, int event) Announce - blocking, dispatches to HTTP or UDP by tracker type.private TrackerInfoTrackerClient.doRequestHTTP(TrackerClient.TCTracker tr, String infoHash, String peerID, long uploaded, long downloaded, long left, int event) HTTP - blocking.private TrackerInfoTrackerClient.doRequestUDP(TrackerClient.TCTracker tr, long uploaded, long downloaded, long left, int event) UDP - blocking.private TrackerInfoTrackerClient.doScrape(TrackerClient.TCTracker tr) Scrape for swarm composition from a tracker, BEP 15 (UDP) or BEP 48 (HTTP).private TrackerInfoTrackerClient.doScrapeHTTP(TrackerClient.TCTracker tr, String infoHash) Scrape for swarm composition from an HTTP tracker, BEP 48: the last path segment of the announce URL is replaced with "scrape" and any query string is dropped.private booleanTrackerClient.processScrapeResponse(TrackerClient.TCTracker tr, TrackerInfo scrape) Handle a successful scrape response: refresh the swarm composition and clear the tracker's error indicator — the response proves the tracker is reachable, so a "No response from..." announce failure no longer applies.private voidTrackerClient.scheduleNextScrape(TrackerClient.TCTracker tr, boolean good) Schedule the next scrape for a tracker: the standard interval, or the longer deferral after a good response, plus random jitter so scrapes from many torrents to a shared tracker do not fire in lockstep.private voidTrackerClient.updateInterval(TrackerClient.TCTracker tr, TrackerInfo info) Clamp the tracker interval to the minimum and record it.Method parameters in org.klomp.snark with type arguments of type TrackerClient.TCTrackerModifier and TypeMethodDescriptionprivate intTrackerClient.getPeersFromTrackers(List<TrackerClient.TCTracker> trckrs) Fetch peers from a list of trackers.Constructors in org.klomp.snark with parameters of type TrackerClient.TCTrackerModifierConstructorDescriptionUnannouncer(TrackerClient.TCTracker tr, CountDownLatch latch) Prepares to unannounce from one tracker.