libktorrent  2.2.0
Public Member Functions | List of all members
dht::DHTPeerSource Class Reference

#include <dhtpeersource.h>

Inheritance diagram for dht::DHTPeerSource:
Inheritance graph
[legend]

Public Member Functions

 DHTPeerSource (DHTBase &dh_table, const bt::SHA1Hash &info_hash, const QString &torrent_name)
 
void addDHTNode (const bt::DHTNode &node)
 
void manualUpdate () override
 
void setRequestInterval (bt::Uint32 interval)
 
void start () override
 
void stop (bt::WaitJob *wjob=0) override
 
- Public Member Functions inherited from bt::PeerSource
void addPeer (const net::Address &addr, bool local=false)
 
bool takePeer (net::Address &addr, bool &local)
 

Additional Inherited Members

- Public Slots inherited from bt::PeerSource
virtual void aboutToBeDestroyed ()
 
virtual void completed ()
 
- Signals inherited from bt::PeerSource
void peersReady (PeerSource *ps)
 

Detailed Description

Author
Joris Guisson joris.nosp@m..gui.nosp@m.sson@.nosp@m.gmai.nosp@m.l.com

Definition at line 45 of file dhtpeersource.h.

Member Function Documentation

◆ manualUpdate()

void dht::DHTPeerSource::manualUpdate ( )
overridevirtual

PeerSources wanting to implement a manual update, should implement this.

Reimplemented from bt::PeerSource.

◆ start()

void dht::DHTPeerSource::start ( )
overridevirtual

Start gathering peers.

Implements bt::PeerSource.

◆ stop()

void dht::DHTPeerSource::stop ( bt::WaitJob wjob = 0)
overridevirtual

Stop gathering peers.

Implements bt::PeerSource.


The documentation for this class was generated from the following file: