OverSim
BootstrapEntry Struct Reference

BootstrapEntry consists of TransportAddress and PeerInfo and is used (together with IPvXAddress) as an entry in the peerSet. More...

#include <PeerStorage.h>

Public Attributes

AddrPerOverlayVector addrVector
PeerInfoinfo
uint32_t peerVectorIndex

Friends

std::ostream & operator<< (std::ostream &Stream, const BootstrapEntry &entry)

Detailed Description

BootstrapEntry consists of TransportAddress and PeerInfo and is used (together with IPvXAddress) as an entry in the peerSet.

Definition at line 101 of file PeerStorage.h.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  Stream,
const BootstrapEntry entry 
)
friend

Definition at line 41 of file GlobalNodeList.cc.

{
for (AddrPerOverlayVector::const_iterator it2 = entry.addrVector.begin();
it2 != entry.addrVector.end(); it2++) {
NodeHandle* nodeHandle = dynamic_cast<NodeHandle*>(it2->ta);
os << "Overlay " << it2->overlayId << ": " << *(it2->ta);
if (nodeHandle) {
os << " (" << nodeHandle->getKey() << ")";
}
if (it2->bootstrapped == false) {
os << " [NOT BOOTSTRAPPED]";
}
}
os << " " << *(entry.info);
return os;
}

Member Data Documentation

AddrPerOverlayVector BootstrapEntry::addrVector

Definition at line 103 of file PeerStorage.h.

Referenced by GlobalNodeList::getNodeHandle(), and operator<<().

PeerInfo* BootstrapEntry::info

Definition at line 104 of file PeerStorage.h.

Referenced by GlobalNodeList::addPeer(), and operator<<().

uint32_t BootstrapEntry::peerVectorIndex

Definition at line 105 of file PeerStorage.h.


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