Interface ITracker
Namespace: MonoTorrent.Client.Tracker
Assembly: MonoTorrent.dll
Syntax
public interface ITracker
Properties
CanScrape
True if the tracker supports Scrape requests.
Declaration
bool CanScrape { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
FailureMessage
The failure message sent with the most recent announce request.
Declaration
string FailureMessage { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
MinUpdateInterval
The minimum interval between announce requests.
Declaration
TimeSpan MinUpdateInterval { get; }
Property Value
| Type | Description |
|---|---|
| System.TimeSpan |
Status
The status of the tracker after the most recent announce request.
Declaration
TrackerState Status { get; }
Property Value
| Type | Description |
|---|---|
| TrackerState |
TimeSinceLastAnnounce
The time since the last announce request was sent.
Declaration
TimeSpan TimeSinceLastAnnounce { get; }
Property Value
| Type | Description |
|---|---|
| System.TimeSpan |
UpdateInterval
The recommended interval between announce requests.
Declaration
TimeSpan UpdateInterval { get; }
Property Value
| Type | Description |
|---|---|
| System.TimeSpan |
Uri
The uri for the tracker
Declaration
Uri Uri { get; }
Property Value
| Type | Description |
|---|---|
| System.Uri |
WarningMessage
The warning message sent with the most recent announce request.
Declaration
string WarningMessage { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
AnnounceAsync(AnnounceParameters, CancellationToken)
Send an announce request to the tracker.
Declaration
ReusableTask<AnnounceResponse> AnnounceAsync(AnnounceParameters parameters, CancellationToken token)
Parameters
| Type | Name | Description |
|---|---|---|
| AnnounceParameters | parameters | |
| System.Threading.CancellationToken | token | The token used to cancel the request. |
Returns
| Type | Description |
|---|---|
| ReusableTasks.ReusableTask<AnnounceResponse> |
ScrapeAsync(ScrapeParameters, CancellationToken)
Send a scrape request to the tracker.
Declaration
ReusableTask<ScrapeResponse> ScrapeAsync(ScrapeParameters parameters, CancellationToken token)
Parameters
| Type | Name | Description |
|---|---|---|
| ScrapeParameters | parameters | |
| System.Threading.CancellationToken | token | The token used to cancel the request. |
Returns
| Type | Description |
|---|---|
| ReusableTasks.ReusableTask<ScrapeResponse> |