BootstrapNodeHandle Class Reference

#include <BootstrapNodeHandle.h>

Inheritance diagram for BootstrapNodeHandle:

NodeHandle TransportAddress

List of all members.


Detailed Description

Definition at line 33 of file BootstrapNodeHandle.h.


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]

Definition at line 40 of file BootstrapNodeHandle.h.

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

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

Definition at line 46 of file BootstrapNodeHandle.h.

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

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

Definition at line 51 of file BootstrapNodeHandle.h.

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]

Definition at line 60 of file BootstrapNodeHandle.h.

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


Member Function Documentation

BootstrapNodePrioType BootstrapNodeHandle::getNodePrio (  )  const [inline]

Definition at line 68 of file BootstrapNodeHandle.h.

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

00068                                                      {
00069         return nodePrio;
00070     }

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

Definition at line 72 of file BootstrapNodeHandle.h.

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

simtime_t BootstrapNodeHandle::getLastPing (  )  const [inline]

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

Definition at line 80 of file BootstrapNodeHandle.h.

Referenced by BootstrapList::insertBootstrapCandidate().

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


Member Data Documentation

Definition at line 36 of file BootstrapNodeHandle.h.

Referenced by BootstrapNodeHandle(), and getNodePrio().

simtime_t BootstrapNodeHandle::lastPing [private]

Definition at line 37 of file BootstrapNodeHandle.h.

Referenced by getLastPing().


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

Generated on Wed Mar 25 16:32:52 2009 for OverSim by  doxygen 1.5.5