#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) |
Definition in file SimpleNodeEntry.cc.
| std::ostream& operator<< | ( | std::ostream & | out, | |
| const SimpleNodeEntry & | entry | |||
| ) |
| out | output stream | |
| entry | the terminal |
Definition at line 263 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;
}
1.7.1