C# 클래스 OctoTorrent.Client.SlidingWindowPicker

Generates a sliding window with high, medium, and low priority sets. The high priority set is downloaded first and in order. The medium and low priority sets are downloaded rarest first. This is intended to be used with a BitTorrent streaming application. The high priority set represents pieces that are needed SOON. This set is updated by calling code, to adapt for events (e.g. user fast-forwards or seeks, etc.)
상속: OctoTorrent.Client.PiecePicker
파일 보기 프로젝트 열기: Eskat0n/OctoTorrent

공개 메소드들

메소드 설명
Initialise ( BitField bitfield, TorrentFile files, IEnumerable requests ) : void

PickPiece ( PeerId id, BitField peerBitfield, List otherPeers, int count, int startIndex, int endIndex ) : MessageBundle
SlidingWindowPicker ( OctoTorrent.Client.PiecePicker picker ) : System

Empty constructor for changing piece pickers

비공개 메소드들

메소드 설명
SlidingWindowPicker ( OctoTorrent.Client.PiecePicker picker, int highPrioritySetSize ) : System

Creates a new piece picker with support for prioritization of files. The sliding window will be positioned to the start of the first file to be downloaded

SlidingWindowPicker ( OctoTorrent.Client.PiecePicker picker, int highPrioritySetSize, int mediumToHighRatio ) : System

Create a new SlidingWindowPicker with the given set sizes. The sliding window will be positioned to the start of the first file to be downloaded

메소드 상세

Initialise() 공개 메소드

public Initialise ( BitField bitfield, TorrentFile files, IEnumerable requests ) : void
bitfield BitField
files TorrentFile
requests IEnumerable
리턴 void

PickPiece() 공개 메소드

public PickPiece ( PeerId id, BitField peerBitfield, List otherPeers, int count, int startIndex, int endIndex ) : MessageBundle
id PeerId
peerBitfield BitField
otherPeers List
count int
startIndex int
endIndex int
리턴 OctoTorrent.Client.Messages.MessageBundle

SlidingWindowPicker() 공개 메소드

Empty constructor for changing piece pickers
public SlidingWindowPicker ( OctoTorrent.Client.PiecePicker picker ) : System
picker OctoTorrent.Client.PiecePicker
리턴 System