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.

00031 {
00032     if (n.ip.isUnspecified()) {
00033         os << "<addr unspec> ";
00034     } else {
00035         os << n.ip << ":" << n.port << " ";
00036     }
00037 
00038     if (n.key.isUnspecified()) {
00039         os << "<key unspec>";
00040     } else {
00041         os << n.key;
00042     }
00043 
00044     return os;
00045 };


Generated on Tue Sep 8 17:26:55 2009 for OverSim by  doxygen 1.5.8