Show / Hide Table of Contents

Interface IPeer

Namespace: MonoTorrent.Client.PiecePicking
Assembly: MonoTorrent.dll
Syntax
public interface IPeer

Properties

AmRequestingPiecesCount

Declaration
int AmRequestingPiecesCount { get; set; }
Property Value
Type Description
System.Int32

BitField

Declaration
BitField BitField { get; }
Property Value
Type Description
BitField

CanCancelRequests

Declaration
bool CanCancelRequests { get; }
Property Value
Type Description
System.Boolean

CanRequestMorePieces

Declaration
bool CanRequestMorePieces { get; }
Property Value
Type Description
System.Boolean

DownloadSpeed

Declaration
long DownloadSpeed { get; }
Property Value
Type Description
System.Int64

IsAllowedFastPieces

Declaration
List<int> IsAllowedFastPieces { get; }
Property Value
Type Description
System.Collections.Generic.List<System.Int32>

IsChoking

Declaration
bool IsChoking { get; }
Property Value
Type Description
System.Boolean

IsSeeder

Declaration
bool IsSeeder { get; }
Property Value
Type Description
System.Boolean

MaxPendingRequests

Declaration
int MaxPendingRequests { get; }
Property Value
Type Description
System.Int32

RepeatedHashFails

Declaration
int RepeatedHashFails { get; }
Property Value
Type Description
System.Int32

SuggestedPieces

Declaration
List<int> SuggestedPieces { get; }
Property Value
Type Description
System.Collections.Generic.List<System.Int32>

SupportsFastPeer

Declaration
bool SupportsFastPeer { get; }
Property Value
Type Description
System.Boolean

TotalHashFails

Declaration
int TotalHashFails { get; }
Property Value
Type Description
System.Int32

Methods

PreferredRequestAmount(Int32)

Returns the number of blocks to request. If the value is greater than 1 it will be rounded up to 1 full piece.

Declaration
int PreferredRequestAmount(int pieceLength)
Parameters
Type Name Description
System.Int32 pieceLength
Returns
Type Description
System.Int32
In This Article
Back to top Generated by DocFX