Show / Hide Table of Contents

Class StreamingPieceRequester

Inheritance
System.Object
StreamingPieceRequester
Implements
IPieceRequester
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.PiecePicking
Assembly: MonoTorrent.dll
Syntax
public class StreamingPieceRequester : IStreamingPieceRequester, IPieceRequester

Properties

HighPriorityPieceIndex

This is the piece index of the block of data currently being consumed by the media player or other program.

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

InEndgameMode

Declaration
public bool InEndgameMode { get; }
Property Value
Type Description
System.Boolean

Picker

Declaration
public IPiecePicker Picker { get; }
Property Value
Type Description
IPiecePicker

Methods

AddRequests(IPeerWithMessaging, IReadOnlyList<IPeerWithMessaging>)

Declaration
public void AddRequests(IPeerWithMessaging peer, IReadOnlyList<IPeerWithMessaging> allPeers)
Parameters
Type Name Description
IPeerWithMessaging peer
System.Collections.Generic.IReadOnlyList<IPeerWithMessaging> allPeers

AddRequests(IReadOnlyList<IPeerWithMessaging>)

Declaration
public void AddRequests(IReadOnlyList<IPeerWithMessaging> peers)
Parameters
Type Name Description
System.Collections.Generic.IReadOnlyList<IPeerWithMessaging> peers

Initialise(ITorrentData, IReadOnlyList<BitField>)

Declaration
public void Initialise(ITorrentData torrentData, IReadOnlyList<BitField> ignoringBitfields)
Parameters
Type Name Description
ITorrentData torrentData
System.Collections.Generic.IReadOnlyList<BitField> ignoringBitfields

ReadToPosition(ITorrentFileInfo, Int64)

Inform the picker that we have sequentially read data and so will need to update the high priority set without cancelling pending requests.

Declaration
public void ReadToPosition(ITorrentFileInfo file, long position)
Parameters
Type Name Description
ITorrentFileInfo file
System.Int64 position

SeekToPosition(ITorrentFileInfo, Int64)

Cancel any pending requests and then issue new requests so we immediately download pieces from the new high priority set.

Declaration
public void SeekToPosition(ITorrentFileInfo file, long position)
Parameters
Type Name Description
ITorrentFileInfo file
System.Int64 position

Implements

IPieceRequester
In This Article
Back to top Generated by DocFX