From da3ca9f306cbffb472a654d790a51dc2ebdd8992 Mon Sep 17 00:00:00 2001 From: Dhanya Maliakal Date: Thu, 23 Nov 2017 16:28:02 +0100 Subject: [PATCH] changes to use ZmqSocket.h externally without further changes --- slsReceiverSoftware/include/ZmqSocket.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/slsReceiverSoftware/include/ZmqSocket.h b/slsReceiverSoftware/include/ZmqSocket.h index 35164471b..07fdfd9eb 100644 --- a/slsReceiverSoftware/include/ZmqSocket.h +++ b/slsReceiverSoftware/include/ZmqSocket.h @@ -9,6 +9,7 @@ #include "ansi.h" +#include #include #include #include //gethostbyname() @@ -213,7 +214,7 @@ public: return 0; } } - cerr << "Error: Could not convert hostname to internet address" << endl; + cprintf(RED, "Error: Could not convert hostname to internet address\n"); return 1; }; @@ -231,7 +232,7 @@ public: freeaddrinfo(res); return 0; } - cerr << "Error: Could not convert internet address to ip string" << endl; + cprintf(RED, "Error: Could not convert internet address to ip string\n"); return 1; }