C# Class OctoTorrent.Client.PeerId

Afficher le fichier Open project: Eskat0n/OctoTorrent Class Usage Examples

Méthodes publiques

Свойство Type Description
PieceReads List

Private Properties

Свойство Type Description
Dequeue PeerMessage
Enqueue void
EnqueueAt void
GetActiveSetSize int
GetDownloadRate int
InitializeTyrant void
IsUnderUploadLimit bool
PeerId Common.System
TryProcessAsyncReads void
UpdateTyrantStats void

Méthodes publiques

Méthode Description
CloseConnection ( ) : void
Equals ( object obj ) : bool
GetHashCode ( ) : int
SendMessage ( PeerMessage message ) : void
ToString ( ) : string

Private Methods

Méthode Description
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 ) : Common.System
TryProcessAsyncReads ( ) : void
UpdateTyrantStats ( ) : void

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

Method Details

CloseConnection() public méthode

public CloseConnection ( ) : void
Résultat void

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

SendMessage() public méthode

public SendMessage ( PeerMessage message ) : void
message PeerMessage
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string

Property Details

PieceReads public_oe property

public List PieceReads
Résultat List