bootstrapEntry Struct Reference

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

#include <GlobalNodeList.h>

List of all members.

Public Attributes

TransportAddressnode
PeerInfoinfo

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 50 of file GlobalNodeList.h.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  Stream,
const bootstrapEntry  entry 
) [friend]

Definition at line 41 of file GlobalNodeList.cc.

00042 {
00043     NodeHandle* nodeHandle = dynamic_cast<NodeHandle*>(entry.node);
00044 
00045     os << "Address: " << entry.node->getAddress()
00046        << " Port: " << entry.node->getPort();
00047 
00048     if (nodeHandle) {
00049         os << " NodeId: " << nodeHandle->getKey();
00050     }
00051 
00052     os << " ModuleID: "
00053        << entry.info->getModuleID() << " Bootstrapped: "
00054        << (entry.info->isBootstrapped() ? "true" : "false")
00055        << " NPS Layer: " << ((int) entry.info->getNpsLayer())
00056        << " TypeID: " << (entry.info->getTypeID());
00057 
00058     return os;
00059 }


Member Data Documentation


The documentation for this struct was generated from the following file:
Generated on Wed May 26 16:21:16 2010 for OverSim by  doxygen 1.6.3