Property | Type | Description | |
---|---|---|---|
PieceReads | List |
Property | Type | Description | |
---|---|---|---|
Dequeue | PeerMessage | ||
Enqueue | void | ||
EnqueueAt | void | ||
GetActiveSetSize | int | ||
GetDownloadRate | int | ||
InitializeTyrant | void | ||
IsUnderUploadLimit | bool | ||
PeerId | Common.System | ||
TryProcessAsyncReads | void | ||
UpdateTyrantStats | void |
Method | Description | |
---|---|---|
CloseConnection ( ) : void | ||
Equals ( object obj ) : bool | ||
GetHashCode ( ) : int | ||
SendMessage ( PeerMessage message ) : void | ||
ToString ( ) : string |
Method | 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 ( |
||
TryProcessAsyncReads ( ) : void | ||
UpdateTyrantStats ( ) : void |
Should be called by ChokeUnchokeManager.ExecuteReview Logic taken from BitTyrant implementation
|
public SendMessage ( PeerMessage message ) : void | ||
message | PeerMessage | |
return | void |