GiaNode.cc File Reference

#include <OverlayKey.h>
#include "GiaNode.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const GiaNode &node)

Detailed Description

Author:
Robert Palmer

Definition in file GiaNode.cc.


Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const GiaNode node 
)

Definition at line 67 of file GiaNode.cc.

00068 {
00069     if(node.ip.isUnspecified() == true && node.key.isUnspecified() && node.port == -1) {
00070         os << "<unspec>";
00071     } else {
00072         os << node.ip << ":" << node.port << " "
00073            << node.key.toString() << " with capacity: "
00074            << node.capacity //<< " , degree: " << node.connectionDegree
00075             //<< " , sentTokens: " << node.sentTokens << " , receivedTokens: " << node.receivedTokens;
00076             ;
00077     }
00078     return os;
00079 }

Generated on Wed May 26 16:21:15 2010 for OverSim by  doxygen 1.6.3