C# 클래스 Universal.Torrent.Client.PeerConnections.PeerId

파일 보기 프로젝트 열기: haroldma/Universal.Torrent 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
PieceReads List

Private Properties

프로퍼티 타입 설명
Dequeue Universal.Torrent.Client.Messages.PeerMessage
Enqueue void
EnqueueAt void
GetActiveSetSize int
GetDownloadRate int
InitializeTyrant void
IsUnderUploadLimit bool
PeerId System
TryProcessAsyncReads void
UpdateTyrantStats void

공개 메소드들

메소드 설명
CloseConnection ( ) : void
Equals ( object obj ) : bool
GetHashCode ( ) : int
SendMessage ( PeerMessage message ) : void
ToString ( ) : string

비공개 메소드들

메소드 설명
Dequeue ( ) : PeerMessage
Enqueue ( PeerMessage msg ) : void
EnqueueAt ( PeerMessage message, int index ) : void
GetActiveSetSize ( int uploadRate ) : int

Stolen from reference BitTyrant implementation (see org.gudy.azureus2.core3.peer.TyrantStats)

GetDownloadRate ( ) : int

Get our download rate from this peer -- this is Dp. 1. If we are not choked by this peer, return the actual measure download rate. 2. If we are choked, then attempt to make an educated guess at the download rate using the following steps - use the rate of Have messages received from this peer as an estimate of its download rate - assume that its upload rate is equivalent to its estimated download rate - divide this upload rate by the standard implementation's active set size for that rate

InitializeTyrant ( ) : void
IsUnderUploadLimit ( ) : bool

Compares the actual upload rate with the upload rate that we are supposed to be limiting them to (UploadRateForRecip)

PeerId ( Peer peer, TorrentManager manager ) : System
TryProcessAsyncReads ( ) : void
UpdateTyrantStats ( ) : void

Should be called by ChokeUnchokeManager.ExecuteReview Logic taken from BitTyrant implementation

메소드 상세

CloseConnection() 공개 메소드

public CloseConnection ( ) : void
리턴 void

Equals() 공개 메소드

public Equals ( object obj ) : bool
obj object
리턴 bool

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

SendMessage() 공개 메소드

public SendMessage ( PeerMessage message ) : void
message Universal.Torrent.Client.Messages.PeerMessage
리턴 void

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

프로퍼티 상세

PieceReads 공개적으로 프로퍼티

public List PieceReads
리턴 List