Index: /trunk/BNC/bncnetqueryudp0.cpp
===================================================================
--- /trunk/BNC/bncnetqueryudp0.cpp	(revision 1790)
+++ /trunk/BNC/bncnetqueryudp0.cpp	(revision 1791)
@@ -15,9 +15,5 @@
  * -----------------------------------------------------------------------*/
 
-#include <iostream>
-
 #include "bncnetqueryudp0.h"
-
-using namespace std;
 
 // Constructor
@@ -26,10 +22,4 @@
   _udpSocket = 0;
   _eventLoop = new QEventLoop(this);
-
-  _keepAlive[ 0] = 128;
-  _keepAlive[ 1] =  96;
-  for (int ii = 2; ii <=11; ii++) {
-    _keepAlive[ii] = 0;
-  }
 }
 
@@ -78,25 +68,9 @@
   _status = running;
 
-  // Default scheme and path
-  // -----------------------
-  _url = url;
-  if (_url.scheme().isEmpty()) {
-    _url.setScheme("http");
-  }
-  if (_url.path().isEmpty()) {
-    _url.setPath("/");
-  }
+  delete _udpSocket;
+  _udpSocket = new QUdpSocket();
+  _udpSocket->bind(_url.port());
 
-  delete _udpSocket; _udpSocket = 0;
-
-  QHostInfo hInfo = QHostInfo::fromName(_url.host());
-  if (!hInfo.addresses().isEmpty()) {
-    _address = hInfo.addresses().first();
-    _udpSocket = new QUdpSocket();
-    _udpSocket->bind(_url.port());
-    connect(_udpSocket, SIGNAL(readyRead()), _eventLoop, SLOT(quit()));
-
-    _udpSocket->writeDatagram(_keepAlive, 12, _address, _url.port());
-  }
+  connect(_udpSocket, SIGNAL(readyRead()), _eventLoop, SLOT(quit()));
 }
 
