Functions

PeerInfo.cc File Reference

#include "PeerInfo.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const PeerInfo info)

Detailed Description

Author:
Helge Backhaus
Stephan Krause

Definition in file PeerInfo.cc.


Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const PeerInfo  info 
)
Parameters:
os the ostream
info the PeerInfo
Returns:
the output stream

Definition at line 40 of file PeerInfo.cc.

{
    os  << "ModuleId: " << info.moduleId << "Bootstrapped: "
        << (info.bootstrapped ? "true" : "false");

    if (info.npsLayer >= 0) os << "; NPS Layer: " << info.npsLayer;
    return os;
}