Show / Hide Table of Contents

Interface IDhtEngine

Inherited Members
System.IDisposable.Dispose()
Namespace: MonoTorrent.Dht
Assembly: MonoTorrent.dll
Syntax
public interface IDhtEngine : IDisposable

Properties

Disposed

Declaration
bool Disposed { get; }
Property Value
Type Description
System.Boolean

State

Declaration
DhtState State { get; }
Property Value
Type Description
DhtState

Methods

Add(BEncodedList)

Declaration
void Add(BEncodedList nodes)
Parameters
Type Name Description
BEncodedList nodes

Announce(InfoHash, Int32)

Declaration
void Announce(InfoHash infohash, int port)
Parameters
Type Name Description
InfoHash infohash
System.Int32 port

GetPeers(InfoHash)

Declaration
void GetPeers(InfoHash infohash)
Parameters
Type Name Description
InfoHash infohash

SaveNodesAsync()

Declaration
Task<byte[]> SaveNodesAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Byte[]>

SetListener(IDhtListener)

Declaration
void SetListener(IDhtListener listener)
Parameters
Type Name Description
IDhtListener listener

StartAsync()

Declaration
Task StartAsync()
Returns
Type Description
System.Threading.Tasks.Task

StartAsync(Byte[])

Declaration
Task StartAsync(byte[] initialNodes)
Parameters
Type Name Description
System.Byte[] initialNodes
Returns
Type Description
System.Threading.Tasks.Task

StopAsync()

Declaration
Task StopAsync()
Returns
Type Description
System.Threading.Tasks.Task

Events

PeersFound

Declaration
event EventHandler<PeersFoundEventArgs> PeersFound
Event Type
Type Description
System.EventHandler<PeersFoundEventArgs>

StateChanged

Declaration
event EventHandler StateChanged
Event Type
Type Description
System.EventHandler
In This Article
Back to top Generated by DocFX