NodeHandle.cc File Reference

#include "NodeHandle.h"
#include <oversim_mapset.h>
#include <omnetpp.h>
#include <OverlayKey.h>
#include <TransportAddress.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 Wed May 26 16:21:15 2010 for OverSim by  doxygen 1.6.3