C# 클래스 OctoTorrent.Client.ChokeUnchokeManager

상속: IUnchoker
파일 보기 프로젝트 열기: Eskat0n/OctoTorrent

Private Properties

프로퍼티 타입 설명
AllLists IEnumerable
AllocateSlots void
ExecuteReview void
ExecuteTyrantReview void
ReallocateSlot void
ReallocateSlots void
RejectPendingRequests void
SecondsBetween double
UnchokePeerList void

공개 메소드들

메소드 설명
Choke ( PeerId peer ) : void
ChokeUnchokeManager ( TorrentManager torrentManager, int minimumTimeBetweenReviews, int percentOfMaxRateToSkipReview ) : Common.System

Creates a new choke/unchoke manager for a torrent manager

TimePassed ( ) : void

Executed each tick of the client engine

Unchoke ( PeerId PeerToUnchoke ) : void
UnchokeReview ( ) : void

비공개 메소드들

메소드 설명
AllLists ( ) : IEnumerable
AllocateSlots ( int alreadyUnchoked ) : void
ExecuteReview ( ) : void
ExecuteTyrantReview ( ) : void

Review method for BitTyrant Choking/Unchoking Algorithm

ReallocateSlot ( int &NumberOfSlots, int &MaximumUnchokes, PeerId peer ) : void

Reallocates the next slot with the specified peer if we can

ReallocateSlots ( int NumberOfSlots, int NumberOfUnchokedPeers ) : void

Reallocates the specified number of upload slots

RejectPendingRequests ( PeerId Peer ) : void

Checks the send queue of the peer to see if there are any outstanding pieces which they requested and rejects them as necessary

SecondsBetween ( System.DateTime FirstTime, System.DateTime SecondTime ) : double
UnchokePeerList ( List PeerList ) : void

메소드 상세

Choke() 공개 메소드

public Choke ( PeerId peer ) : void
peer PeerId
리턴 void

ChokeUnchokeManager() 공개 메소드

Creates a new choke/unchoke manager for a torrent manager
public ChokeUnchokeManager ( TorrentManager torrentManager, int minimumTimeBetweenReviews, int percentOfMaxRateToSkipReview ) : Common.System
torrentManager TorrentManager
minimumTimeBetweenReviews int
percentOfMaxRateToSkipReview int
리턴 Common.System

TimePassed() 공개 메소드

Executed each tick of the client engine
public TimePassed ( ) : void
리턴 void

Unchoke() 공개 메소드

public Unchoke ( PeerId PeerToUnchoke ) : void
PeerToUnchoke PeerId
리턴 void

UnchokeReview() 공개 메소드

public UnchokeReview ( ) : void
리턴 void