BootstrapNodeHandle Class Reference

#include <BootstrapNodeHandle.h>

Inheritance diagram for BootstrapNodeHandle:

NodeHandle TransportAddress

List of all members.

Public Member Functions

 BootstrapNodeHandle ()
 BootstrapNodeHandle (const BootstrapNodeHandle &handle)
 BootstrapNodeHandle (const NodeHandle &handle, BootstrapNodePrioType prio=CACHE)
 BootstrapNodeHandle (const OverlayKey &key, const IPvXAddress &ip, int port, BootstrapNodePrioType prio=CACHE)
BootstrapNodePrioType getNodePrio () const
void setNodePrio (BootstrapNodePrioType nodePrio)
simtime_t getLastPing () const
void setLastPing (simtime_t lastPing)

Private Attributes

BootstrapNodePrioType nodePrio
simtime_t lastPing


Constructor & Destructor Documentation

BootstrapNodeHandle::BootstrapNodeHandle (  )  [inline]

00040                           : NodeHandle()
00041     {
00042         /* lowest priority */
00043         nodePrio = CACHE;
00044     }

BootstrapNodeHandle::BootstrapNodeHandle ( const BootstrapNodeHandle handle  )  [inline]

00046                                                            : NodeHandle(handle)
00047     {
00048         nodePrio = handle.nodePrio;
00049     }

BootstrapNodeHandle::BootstrapNodeHandle ( const NodeHandle handle,
BootstrapNodePrioType  prio = CACHE 
) [inline]

00053     {
00054         this->ip = handle.ip;
00055         this->port = handle.port;
00056         this->key = handle.key;
00057         nodePrio = prio;
00058     }

BootstrapNodeHandle::BootstrapNodeHandle ( const OverlayKey key,
const IPvXAddress &  ip,
int  port,
BootstrapNodePrioType  prio = CACHE 
) [inline]

00064                         : NodeHandle(key, ip, port)   {
00065         nodePrio = prio;
00066     }


Member Function Documentation

BootstrapNodePrioType BootstrapNodeHandle::getNodePrio (  )  const [inline]

Referenced by BootstrapList::insertBootstrapCandidate(), and operator<<().

00068                                                      {
00069         return nodePrio;
00070     }

void BootstrapNodeHandle::setNodePrio ( BootstrapNodePrioType  nodePrio  )  [inline]

00072                                                             {
00073         this->nodePrio = nodePrio;
00074     }

simtime_t BootstrapNodeHandle::getLastPing (  )  const [inline]

void BootstrapNodeHandle::setLastPing ( simtime_t  lastPing  )  [inline]

Referenced by BootstrapList::insertBootstrapCandidate().

00080                                                 {
00081         this->lastPing = lastPing;
00082     }


Member Data Documentation

Referenced by BootstrapNodeHandle(), and getNodePrio().

simtime_t BootstrapNodeHandle::lastPing [private]

Referenced by getLastPing().


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

Generated on Fri Sep 19 13:05:06 2008 for ITM OverSim by  doxygen 1.5.5