Interface IDhtEngine
Inherited Members
System.IDisposable.Dispose()
Assembly: MonoTorrent.dll
Syntax
public interface IDhtEngine : IDisposable
Properties
Disposed
Declaration
Property Value
| Type |
Description |
| System.Boolean |
|
State
Declaration
Property Value
Methods
Add(BEncodedList)
Declaration
void Add(BEncodedList nodes)
Parameters
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
SaveNodesAsync()
Declaration
Task<byte[]> SaveNodesAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task<System.Byte[]> |
|
SetListener(IDhtListener)
Declaration
void SetListener(IDhtListener listener)
Parameters
StartAsync()
Declaration
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
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Events
PeersFound
Declaration
event EventHandler<PeersFoundEventArgs> PeersFound
Event Type
StateChanged
Declaration
event EventHandler StateChanged
Event Type
| Type |
Description |
| System.EventHandler |
|