C# Class TorrentSwifter.Trackers.Tracker

A torrent tracker.
Inheritance: IDisposable
Show file 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 property

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

downloadedCount protected property

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

failureMessage protected property

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

incompleteCount protected property

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

interval protected property

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

minInterval protected property

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

status protected property

The tracker status.
protected TrackerStatus status
return TrackerStatus

warningMessage protected property

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