BootstrapEntry consists of TransportAddress and PeerInfo and is used (together with IPvXAddress) as an entry in the peerSet. More...
#include <PeerStorage.h>
Public Attributes | |
TransportAddress * | node |
PeerInfo * | info |
uint32_t | peerVectorIndex |
Friends | |
std::ostream & | operator<< (std::ostream &Stream, const BootstrapEntry entry) |
BootstrapEntry consists of TransportAddress and PeerInfo and is used (together with IPvXAddress) as an entry in the peerSet.
Definition at line 43 of file PeerStorage.h.
std::ostream& operator<< | ( | std::ostream & | Stream, | |
const BootstrapEntry | entry | |||
) | [friend] |
Definition at line 41 of file GlobalNodeList.cc.
{ NodeHandle* nodeHandle = dynamic_cast<NodeHandle*>(entry.node); os << "Address: " << entry.node->getIp() << " Port: " << entry.node->getPort(); if (nodeHandle) { os << " NodeId: " << nodeHandle->getKey(); } os << " ModuleID: " << entry.info->getModuleID() << " Bootstrapped: " << (entry.info->isBootstrapped() ? "true" : "false") << " NPS Layer: " << ((int) entry.info->getNpsLayer()) << " TypeID: " << (entry.info->getTypeID()); return os; }
Definition at line 46 of file PeerStorage.h.
Referenced by GlobalNodeList::addPeer(), and operator<<().
Definition at line 45 of file PeerStorage.h.
Referenced by GlobalNodeList::addPeer(), and operator<<().
uint32_t BootstrapEntry::peerVectorIndex |
Definition at line 47 of file PeerStorage.h.