C# Класс Universal.Torrent.Client.PeerConnections.PeerId

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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