fixed testChannelAccess

This commit is contained in:
Matej Sekoranja
2015-12-16 13:52:56 +01:00
parent 22d6db2818
commit 91b5cc707d
4 changed files with 31 additions and 31 deletions

View File

@@ -4439,9 +4439,13 @@ namespace epics {
}
}
for (size_t i = 0; broadcastAddresses.get() && i < broadcastAddresses->size(); i++)
LOG(logLevelDebug,
"Broadcast address #%d: %s.", i, inetAddressToString((*broadcastAddresses)[i]).c_str());
if (!broadcastAddresses.get() || !broadcastAddresses->size())
LOG(logLevelWarn,
"No broadcast addresses found or specified!");
else
for (size_t i = 0; i < broadcastAddresses->size(); i++)
LOG(logLevelDebug,
"Broadcast address #%d: %s.", i, inetAddressToString((*broadcastAddresses)[i]).c_str());
// where to bind (listen) address
osiSockAddr listenLocalAddress;