kget
dht::KBucketEntry Class Reference
#include <kbucket.h>
Inheritance diagram for dht::KBucketEntry:

Detailed Description
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 65 of file kbucket.h.
Public Member Functions | |
| const KInetSocketAddress & | getAddress () const |
| const Key & | getID () const |
| void | hasResponded () |
| bool | isBad () const |
| bool | isGood () const |
| bool | isQuestionable () const |
| KBucketEntry (const KBucketEntry &other) | |
| KBucketEntry (const KInetSocketAddress &addr, const Key &id) | |
| KBucketEntry () | |
| void | onPingQuestionable () |
| KBucketEntry & | operator= (const KBucketEntry &other) |
| bool | operator== (const KBucketEntry &entry) const |
| void | requestTimeout () |
| virtual | ~KBucketEntry () |
Static Public Attributes | |
| static KBucketEntry | null |
Constructor & Destructor Documentation
| dht::KBucketEntry::KBucketEntry | ( | ) |
| dht::KBucketEntry::KBucketEntry | ( | const KInetSocketAddress & | addr, | |
| const Key & | id | |||
| ) |
Constructor, set the ip, port and key.
- Parameters:
-
addr socket address id ID of node
Definition at line 43 of file kbucket.cpp.
| dht::KBucketEntry::KBucketEntry | ( | const KBucketEntry & | other | ) |
Copy constructor.
- Parameters:
-
other KBucketEntry to copy
- Returns:
Definition at line 51 of file kbucket.cpp.
| dht::KBucketEntry::~KBucketEntry | ( | ) | [virtual] |
Member Function Documentation
| const KInetSocketAddress& dht::KBucketEntry::getAddress | ( | ) | const [inline] |
| const Key& dht::KBucketEntry::getID | ( | ) | const [inline] |
| void dht::KBucketEntry::hasResponded | ( | ) |
| bool dht::KBucketEntry::isBad | ( | ) | const |
| bool dht::KBucketEntry::isGood | ( | ) | const |
| bool dht::KBucketEntry::isQuestionable | ( | ) | const |
Is this node questionable (haven't heard from it in the last 15 minutes).
Definition at line 83 of file kbucket.cpp.
| void dht::KBucketEntry::onPingQuestionable | ( | ) | [inline] |
| KBucketEntry & dht::KBucketEntry::operator= | ( | const KBucketEntry & | other | ) |
Assignment operator.
- Parameters:
-
other Node to copy
- Returns:
- this KBucketEntry
Definition at line 60 of file kbucket.cpp.
| bool dht::KBucketEntry::operator== | ( | const KBucketEntry & | entry | ) | const |
| void dht::KBucketEntry::requestTimeout | ( | ) | [inline] |
Member Data Documentation
KBucketEntry dht::KBucketEntry::null [static] |
The documentation for this class was generated from the following files:
KDE 4.2 API Reference