Functions

NodeHandle.cc File Reference

#include "NodeHandle.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const NodeHandle &n)

Detailed Description

Author:
Markus Mauch
Sebastian Mies

Definition in file NodeHandle.cc.


Function Documentation

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

Definition at line 30 of file NodeHandle.cc.

{
    if (n.ip.isUnspecified()) {
        os << "<addr unspec> ";
    } else {
        os << n.ip << ":" << n.port << " ";
    }

    if (n.key.isUnspecified()) {
        os << "<key unspec>";
    } else {
        os << n.key;
    }

    return os;
};