C# Class Universal.Torrent.Client.Modes.MetadataMode

Inheritance: Mode
ファイルを表示 Open project: haroldma/Universal.Torrent

Private Properties

Property Type Description
GetTorrent Common.Torrent
NextPeer void
RequestNextNeededPiece void
SendRequestToNextPeer void
SwitchToRegular void

Public Methods

Method Description
MetadataMode ( TorrentManager manager, StorageFolder saveFolder ) : System
Tick ( int counter ) : void

Protected Methods

Method Description
AppendBitfieldMessage ( PeerId id, MessageBundle bundle ) : void
HandleAllowedFastMessage ( PeerId id, AllowedFastMessage message ) : void
HandleExtendedHandshakeMessage ( PeerId id, ExtendedHandshakeMessage message ) : void
HandleHaveAllMessage ( PeerId id, HaveAllMessage message ) : void
HandleHaveMessage ( PeerId id, HaveMessage message ) : void
HandleHaveNoneMessage ( PeerId id, HaveNoneMessage message ) : void
HandleInterestedMessage ( PeerId id, InterestedMessage message ) : void
HandleLtMetadataMessage ( PeerId id, LTMetadata message ) : void
HandlePeerExchangeMessage ( PeerId id, PeerExchangeMessage message ) : void
SetAmInterestedStatus ( PeerId id, bool interesting ) : void

Private Methods

Method Description
GetTorrent ( ) : Common.Torrent
NextPeer ( ) : void
RequestNextNeededPiece ( PeerId id ) : void
SendRequestToNextPeer ( ) : void
SwitchToRegular ( ) : void

Method Details

AppendBitfieldMessage() protected method

protected AppendBitfieldMessage ( PeerId id, MessageBundle bundle ) : void
id Universal.Torrent.Client.PeerConnections.PeerId
bundle MessageBundle
return void

HandleAllowedFastMessage() protected method

protected HandleAllowedFastMessage ( PeerId id, AllowedFastMessage message ) : void
id Universal.Torrent.Client.PeerConnections.PeerId
message AllowedFastMessage
return void

HandleExtendedHandshakeMessage() protected method

protected HandleExtendedHandshakeMessage ( PeerId id, ExtendedHandshakeMessage message ) : void
id Universal.Torrent.Client.PeerConnections.PeerId
message Universal.Torrent.Client.Messages.LibtorrentMessages.ExtendedHandshakeMessage
return void

HandleHaveAllMessage() protected method

protected HandleHaveAllMessage ( PeerId id, HaveAllMessage message ) : void
id Universal.Torrent.Client.PeerConnections.PeerId
message Universal.Torrent.Client.Messages.FastPeerExtensions.HaveAllMessage
return void

HandleHaveMessage() protected method

protected HandleHaveMessage ( PeerId id, HaveMessage message ) : void
id Universal.Torrent.Client.PeerConnections.PeerId
message Universal.Torrent.Client.Messages.StandardMessages.HaveMessage
return void

HandleHaveNoneMessage() protected method

protected HandleHaveNoneMessage ( PeerId id, HaveNoneMessage message ) : void
id Universal.Torrent.Client.PeerConnections.PeerId
message Universal.Torrent.Client.Messages.FastPeerExtensions.HaveNoneMessage
return void

HandleInterestedMessage() protected method

protected HandleInterestedMessage ( PeerId id, InterestedMessage message ) : void
id Universal.Torrent.Client.PeerConnections.PeerId
message Universal.Torrent.Client.Messages.StandardMessages.InterestedMessage
return void

HandleLtMetadataMessage() protected method

protected HandleLtMetadataMessage ( PeerId id, LTMetadata message ) : void
id Universal.Torrent.Client.PeerConnections.PeerId
message Universal.Torrent.Client.Messages.LibtorrentMessages.LTMetadata
return void

HandlePeerExchangeMessage() protected method

protected HandlePeerExchangeMessage ( PeerId id, PeerExchangeMessage message ) : void
id Universal.Torrent.Client.PeerConnections.PeerId
message Universal.Torrent.Client.Messages.uTorrent.PeerExchangeMessage
return void

MetadataMode() public method

public MetadataMode ( TorrentManager manager, StorageFolder saveFolder ) : System
manager TorrentManager
saveFolder Windows.Storage.StorageFolder
return System

SetAmInterestedStatus() protected method

protected SetAmInterestedStatus ( PeerId id, bool interesting ) : void
id Universal.Torrent.Client.PeerConnections.PeerId
interesting bool
return void

Tick() public method

public Tick ( int counter ) : void
counter int
return void