From 19647652376f602fb206a9f78dcf7300a89f2800 Mon Sep 17 00:00:00 2001 From: lm Date: Wed, 13 Apr 2011 13:30:32 +0200 Subject: [PATCH] Improved debug output --- src/comm/UDPLink.cc | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/comm/UDPLink.cc b/src/comm/UDPLink.cc index a49d18b17..5ffea46f0 100644 --- a/src/comm/UDPLink.cc +++ b/src/comm/UDPLink.cc @@ -140,20 +140,21 @@ void UDPLink::removeHost(const QString& hostname) void UDPLink::writeBytes(const char* data, qint64 size) { // Broadcast to all connected systems - //QList::iterator h; - // for (h = hosts->begin(); h != hosts->end(); ++h) - - - for (int h = 0; h < hosts.size(); h++) { + for (int h = 0; h < hosts.size(); h++) + { QHostAddress currentHost = hosts.at(h); quint16 currentPort = ports.at(h); - - qDebug() << "WRITING TO" << currentHost.toIPv4Address() << currentPort; + QString bytes; + QString ascii; + //qDebug() << "WRITING DATA TO" << currentHost.toString() << currentPort; for (int i=0; iwriteDatagram(data, size, currentHost, currentPort); } -- 2.22.0