libktorrent
2.2.0
|
#include <kbucketentry.h>
Public Member Functions | |
KBucketEntry () | |
KBucketEntry (const KBucketEntry &other) | |
KBucketEntry (const net::Address &addr, const Key &id) | |
virtual | ~KBucketEntry () |
Destructor. | |
const net::Address & | getAddress () const |
Get the socket address of the node. | |
const Key & | getID () const |
Get it's ID. | |
void | hasResponded () |
Signal the entry that the peer has responded. | |
bool | isBad () const |
Is it a bad node. (Hasn't responded to a query. | |
bool | isGood () const |
Is this node a good node. | |
bool | isQuestionable () const |
Is this node questionable (haven't heard from it in the last 15 minutes) | |
void | onPingQuestionable () |
The entry has been pinged because it is questionable. | |
bool | operator< (const KBucketEntry &entry) const |
< operator | |
KBucketEntry & | operator= (const KBucketEntry &other) |
bool | operator== (const KBucketEntry &entry) const |
Equality operator. | |
void | requestTimeout () |
A request timed out. | |
Static Public Attributes | |
static KBucketEntry | null |
The null entry. | |
Entry in a KBucket, it basically contains an ip_address of a node, the udp port of the node and a node_id.
Definition at line 37 of file kbucketentry.h.
dht::KBucketEntry::KBucketEntry | ( | ) |
Constructor, sets everything to 0.
dht::KBucketEntry::KBucketEntry | ( | const net::Address & | addr, |
const Key & | id | ||
) |
Constructor, set the ip, port and key
addr | socket address |
id | ID of node |
dht::KBucketEntry::KBucketEntry | ( | const KBucketEntry & | other | ) |
KBucketEntry& dht::KBucketEntry::operator= | ( | const KBucketEntry & | other | ) |