C# Class Universal.Torrent.Client.ClientEngine

The Engine that contains the TorrentManagers
Inheritance: IDisposable
Show file Open project: haroldma/Universal.Torrent Class Usage Examples

Public Properties

Property Type Description
SupportsDht bool
SupportsEncryption bool
SupportsEndgameMode bool
SupportsExtended bool
SupportsFastPeer bool
SupportsInitialSeed bool
SupportsLocalPeerDiscovery bool
SupportsWebSeed bool

Public Methods

Method Description
ChangeListenEndpoint ( IPEndPoint endpoint ) : void
ClientEngine ( EngineSettings settings ) : System
ClientEngine ( EngineSettings settings, PeerListener listener ) : System
ClientEngine ( EngineSettings settings, PeerListener listener, PieceWriter writer ) : System
ClientEngine ( EngineSettings settings, PieceWriter writer ) : System
Contains ( Common torrent ) : bool
Contains ( InfoHash infoHash ) : bool
Contains ( TorrentManager manager ) : bool
Dispose ( ) : void
PauseAll ( ) : void
Register ( TorrentManager manager ) : void
RegisterDht ( IDhtEngine engine ) : void
StartAll ( ) : void
StopAll ( ) : void
Unregister ( TorrentManager manager ) : void

Private Methods

Method Description
Broadcast ( TorrentManager manager ) : void
CheckDisposed ( ) : void
CreateRateLimiters ( ) : void
DhtEngineStateChanged ( object o, EventArgs e ) : void
GeneratePeerId ( ) : string
LogicTick ( ) : void
PieceHashed ( object sender, PieceHashedEventArgs e ) : void
RaiseCriticalException ( CriticalExceptionEventArgs e ) : void
RaiseStatsUpdate ( StatsUpdateEventArgs args ) : void
Start ( ) : void
Stop ( ) : void

Method Details

ChangeListenEndpoint() public method

public ChangeListenEndpoint ( IPEndPoint endpoint ) : void
endpoint System.Net.IPEndPoint
return void

ClientEngine() public method

public ClientEngine ( EngineSettings settings ) : System
settings Universal.Torrent.Client.Settings.EngineSettings
return System

ClientEngine() public method

public ClientEngine ( EngineSettings settings, PeerListener listener ) : System
settings Universal.Torrent.Client.Settings.EngineSettings
listener Universal.Torrent.Client.ConnectionListeners.PeerListener
return System

ClientEngine() public method

public ClientEngine ( EngineSettings settings, PeerListener listener, PieceWriter writer ) : System
settings Universal.Torrent.Client.Settings.EngineSettings
listener Universal.Torrent.Client.ConnectionListeners.PeerListener
writer Universal.Torrent.Client.PieceWriter.PieceWriter
return System

ClientEngine() public method

public ClientEngine ( EngineSettings settings, PieceWriter writer ) : System
settings Universal.Torrent.Client.Settings.EngineSettings
writer Universal.Torrent.Client.PieceWriter.PieceWriter
return System

Contains() public method

public Contains ( Common torrent ) : bool
torrent Common
return bool

Contains() public method

public Contains ( InfoHash infoHash ) : bool
infoHash InfoHash
return bool

Contains() public method

public Contains ( TorrentManager manager ) : bool
manager TorrentManager
return bool

Dispose() public method

public Dispose ( ) : void
return void

PauseAll() public method

public PauseAll ( ) : void
return void

Register() public method

public Register ( TorrentManager manager ) : void
manager TorrentManager
return void

RegisterDht() public method

public RegisterDht ( IDhtEngine engine ) : void
engine IDhtEngine
return void

StartAll() public method

public StartAll ( ) : void
return void

StopAll() public method

public StopAll ( ) : void
return void

Unregister() public method

public Unregister ( TorrentManager manager ) : void
manager TorrentManager
return void

Property Details

SupportsDht public static property

public static bool SupportsDht
return bool

SupportsEncryption public static property

public static bool SupportsEncryption
return bool

SupportsEndgameMode public static property

public static bool SupportsEndgameMode
return bool

SupportsExtended public static property

public static bool SupportsExtended
return bool

SupportsFastPeer public static property

public static bool SupportsFastPeer
return bool

SupportsInitialSeed public static property

public static bool SupportsInitialSeed
return bool

SupportsLocalPeerDiscovery public static property

public static bool SupportsLocalPeerDiscovery
return bool

SupportsWebSeed public static property

public static bool SupportsWebSeed
return bool