bootstrapEntry Struct Reference

#include <GlobalNodeList.h>

List of all members.


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.


Public Attributes

TransportAddress * node
PeerInfo * info

Friends

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

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->ip
00046        << " Port: " << entry.node->port;
00047 
00048     if (nodeHandle) {
00049         os << " NodeId: " << nodeHandle->key;
00050     }
00051 
00052     os << " ModuleID: "
00053        << entry.info->getModuleID() << " Bootstrapped: "
00054        << (entry.info->isBootstrapped() ? "true" : "false") << " TypeID: "
00055        << (entry.info->getTypeID());
00056 
00057     return os;
00058 }


Member Data Documentation


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

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