C# Class Universal.Torrent.Dht.MessageFactory

Mostra file Open project: haroldma/Universal.Torrent

Public Methods

Method Description
DecodeMessage ( BEncodedDictionary dictionary ) : Message
RegisterSend ( QueryMessage message ) : void
TryDecodeMessage ( BEncodedDictionary dictionary, Message &message ) : bool
TryDecodeMessage ( BEncodedDictionary dictionary, Message &message, string &error ) : bool
UnregisterSend ( QueryMessage message ) : bool

Private Methods

Method Description
IsRegistered ( BEncodedValue transactionId ) : bool
MessageFactory ( ) : System.Collections.Generic

Method Details

DecodeMessage() public static method

public static DecodeMessage ( BEncodedDictionary dictionary ) : Message
dictionary BEncodedDictionary
return Message

RegisterSend() public static method

public static RegisterSend ( QueryMessage message ) : void
message Universal.Torrent.Dht.Messages.Queries.QueryMessage
return void

TryDecodeMessage() public static method

public static TryDecodeMessage ( BEncodedDictionary dictionary, Message &message ) : bool
dictionary BEncodedDictionary
message Message
return bool

TryDecodeMessage() public static method

public static TryDecodeMessage ( BEncodedDictionary dictionary, Message &message, string &error ) : bool
dictionary BEncodedDictionary
message Message
error string
return bool

UnregisterSend() public static method

public static UnregisterSend ( QueryMessage message ) : bool
message Universal.Torrent.Dht.Messages.Queries.QueryMessage
return bool