OverSim
SimpleNodeEntry.cc File Reference
#include <sstream>
#include <cassert>
#include "SimpleNodeEntry.h"
#include "SimpleUDP.h"
#include "SimpleTCP.h"
#include "SHA1.h"
#include "OverlayKey.h"
#include "BinaryValue.h"
#include "IPAddressResolver.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &out, const SimpleNodeEntry &entry)

Detailed Description

Author
Bernhard Heep

Definition in file SimpleNodeEntry.cc.

Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const SimpleNodeEntry entry 
)
Parameters
outoutput stream
entrythe terminal
Returns
reference to stream out

Definition at line 292 of file SimpleNodeEntry.cc.

{
out << "(";
for (uint8_t i = 0; i < NodeRecord::dim; i++) {
out << "dim" << i <<": " << entry.nodeRecord->coords[i];
out << ", ";
}
// out << ", y:" << entry.nodeRecord->coords[1]
out << ")\n[rx]"
<< "\nbandwidth = " << entry.rx.bandwidth
<< ",\ndelay = " << entry.rx.accessDelay
<< ",\nerrorRate = " << entry.rx.errorRate
<< ",\ntxMaxQueueTime = " << entry.rx.maxQueueTime
<< ",\ntxFinished = " << entry.rx.finished;
out << "\n[tx]"
<< "\nbandwidth = " << entry.tx.bandwidth
<< ",\ndelay = " << entry.tx.accessDelay
<< ",\nerrorRate = " << entry.tx.errorRate
<< ",\ntxMaxQueueTime = " << entry.tx.maxQueueTime
<< ",\ntxFinished = " << entry.tx.finished;
return out;
}