Show / Hide Table of Contents

Class TorrentSettingsBuilder

Inheritance
System.Object
TorrentSettingsBuilder
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: MonoTorrent.Client
Assembly: MonoTorrent.dll
Syntax
public class TorrentSettingsBuilder

Constructors

TorrentSettingsBuilder()

Declaration
public TorrentSettingsBuilder()

TorrentSettingsBuilder(TorrentSettings)

Declaration
public TorrentSettingsBuilder(TorrentSettings settings)
Parameters
Type Name Description
TorrentSettings settings

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; set; }
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; set; }
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; set; }
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; set; }
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; set; }
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; set; }
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; set; }
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; set; }
Property Value
Type Description
System.Int32

WebSeedDelay

The delay before a torrent will start using web seeds.

Declaration
public TimeSpan WebSeedDelay { get; set; }
Property Value
Type Description
System.TimeSpan

WebSeedSpeedTrigger

The download speed under which a torrent will start using web seeds.

Declaration
public int WebSeedSpeedTrigger { get; set; }
Property Value
Type Description
System.Int32

Methods

ToSettings()

Declaration
public TorrentSettings ToSettings()
Returns
Type Description
TorrentSettings
In This Article
Back to top Generated by DocFX