C# Class OctoTorrent.Client.Peer

Mostra file Open project: Eskat0n/OctoTorrent Class Usage Examples

Private Properties

Property Type Description
CompactPeer byte[]
CompactPeer void
DecodeFromDict Peer
Encode BEncodedList
HashedPiece void

Public Methods

Method 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

Method 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 method

public static Decode ( BEncodedList peers ) : MonoTorrentCollection
peers BEncodedList
return MonoTorrentCollection

Decode() public static method

public static Decode ( BEncodedString peers ) : MonoTorrentCollection
peers BEncodedString
return MonoTorrentCollection

Equals() public method

public Equals ( Peer other ) : bool
other Peer
return bool

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

Peer() public method

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

ToString() public method

public ToString ( ) : string
return string