OverSim
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.

{
if(node.ip.isUnspecified() == true && node.key.isUnspecified() && node.port == -1) {
os << "<unspec>";
} else {
os << node.ip << ":" << node.port << " "
<< node.key.toString() << " with capacity: "
<< node.capacity //<< " , degree: " << node.connectionDegree
//<< " , sentTokens: " << node.sentTokens << " , receivedTokens: " << node.receivedTokens;
;
}
return os;
}