C# Class TorrentSwifter.Trackers.Tracker

A torrent tracker.
Inheritance: IDisposable
Afficher le fichier Open project: Whinarn/TorrentSwifter

Protected Properties

Свойство Type Description
completeCount int
downloadedCount int
failureMessage string
incompleteCount int
interval TimeSpan
minInterval TimeSpan
status TrackerStatus
warningMessage string

Méthodes publiques

Méthode Description
Announce ( TorrentSwifter.Trackers.AnnounceRequest request ) : Task

Makes an announce request to this tracker.

Create ( Uri uri ) : Tracker

Creates a tracker from an URI.

Dispose ( ) : void

Disposes of this tracker.

Scrape ( Array infoHashes ) : Task

Makes a scrape request to this tracker.

Tracker ( Uri uri ) : System

Creates a new tracker.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Called when this tracker is being disposed of.

Method Details

Announce() public abstract méthode

Makes an announce request to this tracker.
public abstract Announce ( TorrentSwifter.Trackers.AnnounceRequest request ) : Task
request TorrentSwifter.Trackers.AnnounceRequest The announce request object.
Résultat Task

Create() public static méthode

Creates a tracker from an URI.
public static Create ( Uri uri ) : Tracker
uri Uri The tracker URI.
Résultat Tracker

Dispose() public méthode

Disposes of this tracker.
public Dispose ( ) : void
Résultat void

Dispose() protected abstract méthode

Called when this tracker is being disposed of.
protected abstract Dispose ( bool disposing ) : void
disposing bool If disposing, otherwise finalizing.
Résultat void

Scrape() public abstract méthode

Makes a scrape request to this tracker.
public abstract Scrape ( Array infoHashes ) : Task
infoHashes Array The optional array of info hashes. Can be null or empty.
Résultat Task

Tracker() public méthode

Creates a new tracker.
public Tracker ( Uri uri ) : System
uri Uri The tracker URI.
Résultat System

Property Details

completeCount protected_oe property

The count of completed peers (aka seeders) for this tracker.
protected int completeCount
Résultat int

downloadedCount protected_oe property

The count of completed downloads reported by the tracker.
protected int downloadedCount
Résultat int

failureMessage protected_oe property

The failure message of this tracker.
protected string failureMessage
Résultat string

incompleteCount protected_oe property

The count of incompleted peers (aka leechers) for this tracker.
protected int incompleteCount
Résultat int

interval protected_oe property

The interval between updates to this tracker.
protected TimeSpan interval
Résultat TimeSpan

minInterval protected_oe property

The minimum interval between updates to this tracker.
protected TimeSpan minInterval
Résultat TimeSpan

status protected_oe property

The tracker status.
protected TrackerStatus status
Résultat TrackerStatus

warningMessage protected_oe property

The warning message of this tracker.
protected string warningMessage
Résultat string