#include <omnetpp.h>#include "TransportAddress.h"Go to the source code of this file.
Functions | |
| std::ostream & | operator<< (std::ostream &os, const TransportAddress &n) |
Definition in file TransportAddress.cc.
| std::ostream& operator<< | ( | std::ostream & | os, | |
| const TransportAddress & | n | |||
| ) |
| os | the ostream | |
| n | the TransportAddress |
Definition at line 33 of file TransportAddress.cc.
{
if (n.isUnspecified()) {
os << "<addr unspec>";
} else {
os << n.ip << ":" << n.port;
}
if (n.getSourceRouteSize() > 0) {
os << "(SR:";
for (size_t i = 0; i < n.getSourceRouteSize(); i++) {
os << " " << n.getSourceRoute()[i].ip << ":"
<< n.getSourceRoute()[i].port;
}
os << ")";
}
return os;
};
1.7.1