Class TorrentSettings
Inheritance
System.Object
TorrentSettings
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: MonoTorrent.dll
Syntax
public sealed class TorrentSettings : IEquatable<TorrentSettings>
Constructors
TorrentSettings()
Declaration
Properties
AllowDht
If set to false then the DhtEngine registered with the ClientEngine will
never be used to locate additional peers. Defaults to true.
Declaration
public bool AllowDht { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
AllowInitialSeeding
If set to true, and there are no other seeders for this torrent, then Initial Seeding mode may be used to
prioritise sharing pieces which are not already available in the swarm.
Declaration
public bool AllowInitialSeeding { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
AllowPeerExchange
If set to false then Peer Exchange messages will never be used to locate additional peers. Defaults to true.
Declaration
public bool AllowPeerExchange { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
CreateContainingDirectory
If set to true all files in a multi-file torrent will be placed inside a containing directory.
The directory name will be derived from Name or Name.
Defaults to true
Declaration
public bool CreateContainingDirectory { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
MaximumConnections
The maximum number of concurrent open connections for this torrent. Defaults to 60.
Declaration
public int MaximumConnections { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
MaximumDownloadSpeed
The maximum download speed, in bytes per second, for this torrent. A value of 0 means unlimited. Defaults to 0.
Declaration
public int MaximumDownloadSpeed { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
MaximumUploadSpeed
The maximum upload speed, in bytes per second, for this torrent. A value of 0 means unlimited. defaults to 0.
Declaration
public int MaximumUploadSpeed { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
UploadSlots
The number of peers which can be uploaded to concurrently for this torrent. A value of 0 means unlimited. defaults to 8.
Declaration
public int UploadSlots { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
WebSeedDelay
The delay before a torrent will start using web seeds.
Declaration
public TimeSpan WebSeedDelay { get; }
Property Value
| Type |
Description |
| System.TimeSpan |
|
WebSeedSpeedTrigger
The download speed under which a torrent will start using web seeds.
Declaration
public int WebSeedSpeedTrigger { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
Methods
Equals(TorrentSettings)
Declaration
public bool Equals(TorrentSettings other)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| System.Object |
obj |
|
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type |
Description |
| System.Int32 |
|
Overrides
System.Object.GetHashCode()
Implements
System.IEquatable<T>