Property | Type | Description | |
---|---|---|---|
PieceReads | List |
Property | Type | Description | |
---|---|---|---|
Dequeue | |||
Enqueue | void | ||
EnqueueAt | void | ||
GetActiveSetSize | int | ||
GetDownloadRate | int | ||
InitializeTyrant | void | ||
IsUnderUploadLimit | bool | ||
PeerId | System | ||
TryProcessAsyncReads | void | ||
UpdateTyrantStats | void |
Method | Description | |
---|---|---|
CloseConnection ( ) : void | ||
Equals ( object obj ) : bool | ||
GetHashCode ( ) : int | ||
SendMessage ( |
||
ToString ( ) : string |
Method | Description | |
---|---|---|
Dequeue ( ) : |
||
Enqueue ( |
||
EnqueueAt ( |
||
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
|
public SendMessage ( |
||
message | ||
return | void |