Show / Hide Table of Contents

Class Peer

Inheritance
System.Object
Peer
Implements
System.IEquatable<Peer>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: MonoTorrent.Client
Assembly: MonoTorrent.dll
Syntax
public class Peer : IEquatable<Peer>

Constructors

Peer(BEncodedString, Uri)

Declaration
public Peer(BEncodedString peerId, Uri connectionUri)
Parameters
Type Name Description
BEncodedString peerId
System.Uri connectionUri

Peer(BEncodedString, Uri, IList<EncryptionType>)

Declaration
public Peer(BEncodedString peerId, Uri connectionUri, IList<EncryptionType> allowedEncryption)
Parameters
Type Name Description
BEncodedString peerId
System.Uri connectionUri
System.Collections.Generic.IList<EncryptionType> allowedEncryption

Properties

ConnectionUri

The URI used to make an outgoing connection to this peer.

Declaration
public Uri ConnectionUri { get; }
Property Value
Type Description
System.Uri

Methods

Decode(BEncodedList)

Declaration
public static IList<Peer> Decode(BEncodedList peers)
Parameters
Type Name Description
BEncodedList peers
Returns
Type Description
System.Collections.Generic.IList<Peer>

Decode(BEncodedString)

Declaration
public static IList<Peer> Decode(BEncodedString peers)
Parameters
Type Name Description
BEncodedString peers
Returns
Type Description
System.Collections.Generic.IList<Peer>

Equals(Peer)

Declaration
public bool Equals(Peer other)
Parameters
Type Name Description
Peer other
Returns
Type Description
System.Boolean

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean
Overrides
System.Object.Equals(System.Object)

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.Object.GetHashCode()

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

Implements

System.IEquatable<T>
In This Article
Back to top Generated by DocFX