C# Class OctoTorrent.Client.Peer

Afficher le fichier Open project: Eskat0n/OctoTorrent Class Usage Examples

Private Properties

Свойство Type Description
CompactPeer byte[]
CompactPeer void
DecodeFromDict Peer
Encode BEncodedList
HashedPiece void

Méthodes publiques

Méthode Description
Decode ( BEncodedList peers ) : MonoTorrentCollection
Decode ( BEncodedString peers ) : MonoTorrentCollection
Equals ( Peer other ) : bool
Equals ( object obj ) : bool
GetHashCode ( ) : int
Peer ( string peerId, Uri connectionUri, EncryptionTypes encryption = EncryptionTypes.All ) : Common.System
ToString ( ) : string

Private Methods

Méthode Description
CompactPeer ( ) : byte[]
CompactPeer ( byte data, int offset ) : void
DecodeFromDict ( BEncodedValue>.IDictionary dict ) : Peer
Encode ( IEnumerable peers ) : BEncodedList
HashedPiece ( bool succeeded ) : void

Method Details

Decode() public static méthode

public static Decode ( BEncodedList peers ) : MonoTorrentCollection
peers BEncodedList
Résultat MonoTorrentCollection

Decode() public static méthode

public static Decode ( BEncodedString peers ) : MonoTorrentCollection
peers BEncodedString
Résultat MonoTorrentCollection

Equals() public méthode

public Equals ( Peer other ) : bool
other Peer
Résultat bool

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

Peer() public méthode

public Peer ( string peerId, Uri connectionUri, EncryptionTypes encryption = EncryptionTypes.All ) : Common.System
peerId string
connectionUri System.Uri
encryption EncryptionTypes
Résultat Common.System

ToString() public méthode

public ToString ( ) : string
Résultat string