Index: trunk/BNC/bncrinex.cpp
===================================================================
--- trunk/BNC/bncrinex.cpp	(revision 300)
+++ trunk/BNC/bncrinex.cpp	(revision 301)
@@ -54,4 +54,5 @@
 #include "bncconst.h"
 #include "bnctabledlg.h"
+#include "bncgetthread.h"
 #include "RTCM3/rtcm3torinex.h"
 
@@ -131,6 +132,35 @@
     }
     if (!sklDir.isEmpty() && sklDir != "none") {
-      cout << _mountPoint.path().mid(1).toAscii().data() << " "
-           << sklDir.toAscii().data() << endl;
+      QUrl url(sklDir + "/" + _mountPoint.path().mid(1,4) + ".skl");
+      url.setPort(80);
+
+      cout << url.toString().toAscii().data() << endl;
+
+      const int timeOut = 10*1000;
+      QString msg;
+      QTcpSocket* socket = bncGetThread::request(url, timeOut, msg);
+
+      cout << msg.toAscii().data() << endl;
+
+      if (socket) {
+
+        cout << "haha" << endl;
+        while (true) {
+          if (socket->canReadLine()) {
+            QString line = socket->readLine();
+            cout << line.toAscii().data() << endl;
+          }
+          else {
+            socket->waitForReadyRead(timeOut);
+            if (socket->bytesAvailable() > 0) {
+              continue;
+            }
+            else {
+              break;
+            }
+          }
+        }
+        delete socket;
+      }
     }
   }
