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 <ostream>
using namespace shareddatalayer;
else
return this->getHost() < hp.getHost();
}
+
+std::ostream& shareddatalayer::operator << (std::ostream& os, const HostAndPort& hostAndPort)
+{
+ os << hostAndPort.getHost() << ":" << hostAndPort.getPort();
+ return os;
+}