Public Attributes | Friends

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>

List of all members.

Public Attributes

TransportAddressnode
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 43 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.

{
    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;
}


Member Data Documentation

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<<().

Definition at line 47 of file PeerStorage.h.


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