Add Sentinel configuration reading
[ric-plt/sdl.git] / src / hostandport.cpp
index de045ed..ed711c8 100644 (file)
@@ -20,6 +20,7 @@
 #include <netinet/in.h>
 #include <arpa/inet.h>
 #include <boost/lexical_cast.hpp>
+#include <ostream>
 
 using namespace shareddatalayer;
 
@@ -156,3 +157,9 @@ bool HostAndPort::operator<(const HostAndPort& hp) const
     else
         return this->getHost() < hp.getHost();
 }
+
+std::ostream& shareddatalayer::operator << (std::ostream& os, const HostAndPort& hostAndPort)
+{
+    os << hostAndPort.getHost() << ":" << hostAndPort.getPort();
+    return os;
+}