#include <KademliaNodeHandle.h>
Public Member Functions | |
KademliaNodeHandle () | |
Constructs an unspecified NodeHandle. | |
KademliaNodeHandle (const KademliaNodeHandle &handle) | |
Copy constructor. | |
KademliaNodeHandle (const NodeHandle &handle) | |
KademliaNodeHandle (const OverlayKey &key, const IPvXAddress &ip, int port) | |
Complete constructor. | |
uint8_t | getStaleCount () const |
void | setStaleCount (uint8_t staleCount) |
void | resetStaleCount () |
void | incStaleCount () |
void | setLastSeen (simtime_t lastSeen) |
simtime_t | getLastSeen () |
Private Attributes | |
uint8_t | staleCount |
simtime_t | lastSeen |
KademliaNodeHandle::KademliaNodeHandle | ( | ) | [inline] |
KademliaNodeHandle::KademliaNodeHandle | ( | const KademliaNodeHandle & | handle | ) | [inline] |
Copy constructor.
handle | The NodeHandle to copy |
00044 : NodeHandle( handle ) 00045 { 00046 staleCount = handle.staleCount; 00047 }
KademliaNodeHandle::KademliaNodeHandle | ( | const NodeHandle & | handle | ) | [inline] |
KademliaNodeHandle::KademliaNodeHandle | ( | const OverlayKey & | key, | |
const IPvXAddress & | ip, | |||
int | port | |||
) | [inline] |
Complete constructor.
key | The OverlayKey | |
ip | The IPvXAddress | |
port | The UDP-Port |
00066 : NodeHandle( key, ip, port) 00067 { 00068 staleCount = 0; 00069 }
uint8_t KademliaNodeHandle::getStaleCount | ( | ) | const [inline] |
void KademliaNodeHandle::setStaleCount | ( | uint8_t | staleCount | ) | [inline] |
void KademliaNodeHandle::resetStaleCount | ( | ) | [inline] |
void KademliaNodeHandle::incStaleCount | ( | ) | [inline] |
void KademliaNodeHandle::setLastSeen | ( | simtime_t | lastSeen | ) | [inline] |
simtime_t KademliaNodeHandle::getLastSeen | ( | ) | [inline] |
uint8_t KademliaNodeHandle::staleCount [private] |
simtime_t KademliaNodeHandle::lastSeen [private] |