C# Class Universal.Torrent.Client.Messages.StandardMessages.HandshakeMessage

Inheritance: PeerMessage
Mostra file Open project: haroldma/Universal.Torrent Class Usage Examples

Public Methods

Method Description
Decode ( byte buffer, int offset, int length ) : void
Encode ( byte buffer, int offset ) : int
Equals ( object obj ) : bool
GetHashCode ( ) : int
HandshakeMessage ( ) : System.Collections.Generic
HandshakeMessage ( InfoHash infoHash, string peerId, string protocolString ) : System.Collections.Generic
HandshakeMessage ( InfoHash infoHash, string peerId, string protocolString, bool enableFastPeer ) : System.Collections.Generic
HandshakeMessage ( InfoHash infoHash, string peerId, string protocolString, bool enableFastPeer, bool enableExtended ) : System.Collections.Generic
HandshakeMessage ( bool enableFastPeer ) : System.Collections.Generic

Creates a new HandshakeMessage

ToString ( ) : string

Private Methods

Method Description
CheckForSupports ( IReadOnlyList buffer, int &offset ) : void

Method Details

Decode() public method

public Decode ( byte buffer, int offset, int length ) : void
buffer byte
offset int
length int
return void

Encode() public method

public Encode ( byte buffer, int offset ) : int
buffer byte
offset int
return int

Equals() public method

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

GetHashCode() public method

public GetHashCode ( ) : int
return int

HandshakeMessage() public method

public HandshakeMessage ( ) : System.Collections.Generic
return System.Collections.Generic

HandshakeMessage() public method

public HandshakeMessage ( InfoHash infoHash, string peerId, string protocolString ) : System.Collections.Generic
infoHash InfoHash
peerId string
protocolString string
return System.Collections.Generic

HandshakeMessage() public method

public HandshakeMessage ( InfoHash infoHash, string peerId, string protocolString, bool enableFastPeer ) : System.Collections.Generic
infoHash InfoHash
peerId string
protocolString string
enableFastPeer bool
return System.Collections.Generic

HandshakeMessage() public method

public HandshakeMessage ( InfoHash infoHash, string peerId, string protocolString, bool enableFastPeer, bool enableExtended ) : System.Collections.Generic
infoHash InfoHash
peerId string
protocolString string
enableFastPeer bool
enableExtended bool
return System.Collections.Generic

HandshakeMessage() public method

Creates a new HandshakeMessage
public HandshakeMessage ( bool enableFastPeer ) : System.Collections.Generic
enableFastPeer bool
return System.Collections.Generic

ToString() public method

public ToString ( ) : string
return string