Index: /trunk/BNC/RTCM3/RTCM3coDecoder.cpp
===================================================================
--- /trunk/BNC/RTCM3/RTCM3coDecoder.cpp	(revision 935)
+++ /trunk/BNC/RTCM3/RTCM3coDecoder.cpp	(revision 936)
@@ -45,4 +45,5 @@
 #include "bncutils.h"
 #include "bncrinex.h"
+#include "bncapp.h"
 
 using namespace std;
@@ -65,7 +66,6 @@
   _out = 0;
 
-  _port = settings.value("corrPort").toInt();
-  _server = 0;
-  _sockets = 0;
+  connect(this, SIGNAL(newCorrLine(QString)), 
+          (bncApp*) qApp, SLOT(slotNewCorrLine(QString)));
 }
 
@@ -74,6 +74,4 @@
 RTCM3coDecoder::~RTCM3coDecoder() {
   delete _out;
-  delete _server;
-  delete _sockets;
 }
 
@@ -82,16 +80,4 @@
 void RTCM3coDecoder::reopen() {
 
-  // Socket Server
-  // -------------
-  if (_port != 0 && _server == 0) {
-    _server = new QTcpServer;
-    _server->listen(QHostAddress::Any, _port);
-    QObject::connect(_server, SIGNAL(newConnection()), this, SLOT(slotNewConnection()));
-    _sockets = new QList<QTcpSocket*>;
-    cout << "new port = " << _port << endl;
-  }
-
-  // Output File
-  // ----------- 
   if (!_fileNameSkl.isEmpty()) {
 
@@ -117,11 +103,4 @@
     _out = new ofstream( _fileName.toAscii().data() );
   }
-}
-
-// New Connection
-////////////////////////////////////////////////////////////////////////////
-void RTCM3coDecoder::slotNewConnection() {
-  cout << "slotNewConnection" << endl;
-  _sockets->push_back( _server->nextPendingConnection() );
 }
 
@@ -222,5 +201,4 @@
 ////////////////////////////////////////////////////////////////////////////
 void RTCM3coDecoder::printLine(const QString& line) {
-
   if (_out) {
     *_out << line.toAscii().data();
@@ -228,19 +206,4 @@
   }
 
-  if (_sockets) {
-    QMutableListIterator<QTcpSocket*> is(*_sockets);
-    while (is.hasNext()) {
-      QTcpSocket* sock = is.next();
-      if (sock->state() == QAbstractSocket::ConnectedState) {
-        if (sock->write(line.toAscii()) == -1) {
-          delete sock;
-          is.remove();
-        }
-      }
-      else if (sock->state() != QAbstractSocket::ConnectingState) {
-        delete sock;
-        is.remove();
-      }
-    }
-  }
-}
+  emit newCorrLine(line);
+}
Index: /trunk/BNC/RTCM3/RTCM3coDecoder.h
===================================================================
--- /trunk/BNC/RTCM3/RTCM3coDecoder.h	(revision 935)
+++ /trunk/BNC/RTCM3/RTCM3coDecoder.h	(revision 936)
@@ -44,6 +44,6 @@
   virtual t_irc Decode(char* buffer = 0, int bufLen = 0);
 
- private slots:
-  void slotNewConnection();
+ signals:
+  void newCorrLine(QString line);
 
  private:
@@ -58,6 +58,4 @@
   ClockOrbit          _co;
   Bias                _bias;
-  QTcpServer*         _server;
-  QList<QTcpSocket*>* _sockets;
 };
 
Index: /trunk/BNC/bncapp.cpp
===================================================================
--- /trunk/BNC/bncapp.cpp	(revision 935)
+++ /trunk/BNC/bncapp.cpp	(revision 936)
@@ -570,2 +570,7 @@
 
 
+// 
+////////////////////////////////////////////////////////////////////////////
+void bncApp::slotNewCorrLine(QString line) {
+  cout << line.toAscii().data() << endl;
+}
Index: /trunk/BNC/bncapp.h
===================================================================
--- /trunk/BNC/bncapp.h	(revision 935)
+++ /trunk/BNC/bncapp.h	(revision 936)
@@ -45,4 +45,5 @@
     void slotNewGPSEph(gpsephemeris* gpseph);
     void slotNewGlonassEph(glonassephemeris* glonasseph);
+    void slotNewCorrLine(QString line);
     void slotQuit();
     
