#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.
00034 { 00035 if (n.isUnspecified()) { 00036 os << "<addr unspec>"; 00037 } else { 00038 os << n.ip << ":" << n.port; 00039 } 00040 00041 if (n.getSourceRouteSize() > 0) { 00042 os << "(SR:"; 00043 for (size_t i = 0; i < n.getSourceRouteSize(); i++) { 00044 os << " " << n.getSourceRoute()[i].ip << ":" 00045 << n.getSourceRoute()[i].port; 00046 } 00047 os << ")"; 00048 } 00049 00050 return os; 00051 };
1.5.8