diff --git a/testApp/utils/testInetAddressUtils.cpp b/testApp/utils/testInetAddressUtils.cpp index 8940184..9417679 100644 --- a/testApp/utils/testInetAddressUtils.cpp +++ b/testApp/utils/testInetAddressUtils.cpp @@ -1,6 +1,8 @@ #include #include +#include + #include #include @@ -17,6 +19,16 @@ using namespace epics::pvData; using namespace epics::pvAccess; using namespace std; +std::ostream& operator<<(std::ostream& strm, const osiSockAddr& addr) +{ + char buf[32]; + ipAddrToDottedIP(&addr.ia, buf, sizeof(buf)); + strm<0u, "Found %u interfaces", unsigned(ifaces.size())); + + for(size_t i=0; i