OverSim
NodeHandle.cc File Reference
#include "NodeHandle.h"
#include <cassert>

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
osthe ostream
nthe NodeHandle
Returns
the output stream

Definition at line 31 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;
};