Code Review
/
ric-plt
/
sdl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Replacing committers with new ones
[ric-plt/sdl.git]
/
src
/
hostandport.cpp
diff --git
a/src/hostandport.cpp
b/src/hostandport.cpp
index
de045ed
..
197f93f
100644
(file)
--- a/
src/hostandport.cpp
+++ b/
src/hostandport.cpp
@@
-14,12
+14,18
@@
limitations under the License.
*/
limitations under the License.
*/
+/*
+ * This source code is part of the near-RT RIC (RAN Intelligent Controller)
+ * platform project (RICP).
+*/
+
#include "private/hostandport.hpp"
#include <sstream>
#include <netdb.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <boost/lexical_cast.hpp>
#include "private/hostandport.hpp"
#include <sstream>
#include <netdb.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <boost/lexical_cast.hpp>
+#include <ostream>
using namespace shareddatalayer;
using namespace shareddatalayer;
@@
-156,3
+162,9
@@
bool HostAndPort::operator<(const HostAndPort& hp) const
else
return this->getHost() < hp.getHost();
}
else
return this->getHost() < hp.getHost();
}
+
+std::ostream& shareddatalayer::operator << (std::ostream& os, const HostAndPort& hostAndPort)
+{
+ os << hostAndPort.getHost() << ":" << hostAndPort.getPort();
+ return os;
+}