C# Class TorrentSwifter.Trackers.Tracker

A torrent tracker.
Inheritance: IDisposable
Mostrar archivo Open project: Whinarn/TorrentSwifter

Protected Properties

Property Type Description
completeCount int
downloadedCount int
failureMessage string
incompleteCount int
interval TimeSpan
minInterval TimeSpan
status TrackerStatus
warningMessage string

Public Methods

Method 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.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Called when this tracker is being disposed of.

Method Details

Announce() public abstract method

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

Create() public static method

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

Dispose() public method

Disposes of this tracker.
public Dispose ( ) : void
return void

Dispose() protected abstract method

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

Scrape() public abstract method

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.
return Task

Tracker() public method

Creates a new tracker.
public Tracker ( Uri uri ) : System
uri Uri The tracker URI.
return System

Property Details

completeCount protected_oe property

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

downloadedCount protected_oe property

The count of completed downloads reported by the tracker.
protected int downloadedCount
return int

failureMessage protected_oe property

The failure message of this tracker.
protected string failureMessage
return string

incompleteCount protected_oe property

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

interval protected_oe property

The interval between updates to this tracker.
protected TimeSpan interval
return TimeSpan

minInterval protected_oe property

The minimum interval between updates to this tracker.
protected TimeSpan minInterval
return TimeSpan

status protected_oe property

The tracker status.
protected TrackerStatus status
return TrackerStatus

warningMessage protected_oe property

The warning message of this tracker.
protected string warningMessage
return string