Class PeerId
Inheritance
System.Object
PeerId
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: MonoTorrent.dll
Syntax
public class PeerId : IPeerWithMessaging, IPeer
Properties
AmChoking
Declaration
public bool AmChoking { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
AmInterested
Declaration
public bool AmInterested { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
AmRequestingPiecesCount
Declaration
public int AmRequestingPiecesCount { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
BitField
Declaration
public BitField BitField { get; }
Property Value
ClientApp
Declaration
public Software ClientApp { get; }
Property Value
ConnectionDirection
Declaration
public Direction ConnectionDirection { get; }
Property Value
EncryptionType
Declaration
public EncryptionType EncryptionType { get; }
Property Value
IsChoking
Declaration
public bool IsChoking { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
IsConnected
Declaration
public bool IsConnected { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
IsInterested
Declaration
public bool IsInterested { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
IsRequestingPiecesCount
Declaration
public int IsRequestingPiecesCount { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
IsSeeder
Declaration
public bool IsSeeder { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Monitor
Declaration
public ConnectionMonitor Monitor { get; }
Property Value
PeerID
Declaration
public BEncodedString PeerID { get; }
Property Value
PiecesReceived
Declaration
public int PiecesReceived { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
PiecesSent
Declaration
public int PiecesSent { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
SupportedEncryptionTypes
Declaration
public IList<EncryptionType> SupportedEncryptionTypes { get; }
Property Value
SupportsFastPeer
Declaration
public bool SupportsFastPeer { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
SupportsLTMessages
Declaration
public bool SupportsLTMessages { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Uri
Declaration
Property Value
| Type |
Description |
| System.Uri |
|
Methods
ToString()
Declaration
public override string ToString()
Returns
| Type |
Description |
| System.String |
|
Overrides
System.Object.ToString()
Explicit Interface Implementations
IPeer.AmRequestingPiecesCount
Declaration
int IPeer.AmRequestingPiecesCount { get; set; }
Returns
| Type |
Description |
| System.Int32 |
|
IPeer.CanCancelRequests
Declaration
bool IPeer.CanCancelRequests { get; }
Returns
| Type |
Description |
| System.Boolean |
|
IPeer.CanRequestMorePieces
Declaration
bool IPeer.CanRequestMorePieces { get; }
Returns
| Type |
Description |
| System.Boolean |
|
IPeer.DownloadSpeed
Declaration
long IPeer.DownloadSpeed { get; }
Returns
| Type |
Description |
| System.Int64 |
|
IPeer.IsAllowedFastPieces
Declaration
List<int> IPeer.IsAllowedFastPieces { get; }
Returns
| Type |
Description |
| System.Collections.Generic.List<System.Int32> |
|
IPeer.IsChoking
Declaration
bool IPeer.IsChoking { get; }
Returns
| Type |
Description |
| System.Boolean |
|
IPeer.MaxPendingRequests
Declaration
int IPeer.MaxPendingRequests { get; }
Returns
| Type |
Description |
| System.Int32 |
|
IPeer.PreferredRequestAmount(Int32)
Declaration
int IPeer.PreferredRequestAmount(int pieceLength)
Parameters
| Type |
Name |
Description |
| System.Int32 |
pieceLength |
|
Returns
| Type |
Description |
| System.Int32 |
|
IPeer.RepeatedHashFails
Declaration
int IPeer.RepeatedHashFails { get; }
Returns
| Type |
Description |
| System.Int32 |
|
IPeer.SuggestedPieces
Declaration
List<int> IPeer.SuggestedPieces { get; }
Returns
| Type |
Description |
| System.Collections.Generic.List<System.Int32> |
|
IPeer.TotalHashFails
Declaration
int IPeer.TotalHashFails { get; }
Returns
| Type |
Description |
| System.Int32 |
|
IPeerWithMessaging.EnqueueCancellation(BlockInfo)
Declaration
void IPeerWithMessaging.EnqueueCancellation(BlockInfo request)
Parameters
IPeerWithMessaging.EnqueueCancellations(IList<BlockInfo>)
Declaration
void IPeerWithMessaging.EnqueueCancellations(IList<BlockInfo> requests)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.IList<BlockInfo> |
requests |
|
IPeerWithMessaging.EnqueueRequest(BlockInfo)
Declaration
void IPeerWithMessaging.EnqueueRequest(BlockInfo request)
Parameters
IPeerWithMessaging.EnqueueRequests(IList<BlockInfo>)
Declaration
void IPeerWithMessaging.EnqueueRequests(IList<BlockInfo> requests)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.IList<BlockInfo> |
requests |
|
Implements