Index: trunk/BNC/src/PPP_free/bncpppclient.cpp
===================================================================
--- trunk/BNC/src/PPP_free/bncpppclient.cpp	(revision 6066)
+++ trunk/BNC/src/PPP_free/bncpppclient.cpp	(revision 6067)
@@ -55,5 +55,5 @@
 // Constructor
 ////////////////////////////////////////////////////////////////////////////
-bncPPPclient::bncPPPclient(QByteArray staID, t_pppOptions* opt) : bncEphUser(false) {
+bncPPPclient::bncPPPclient(QByteArray staID, const t_pppOptions* opt) : bncEphUser(false) {
 
   _opt   = opt;
Index: trunk/BNC/src/PPP_free/bncpppclient.h
===================================================================
--- trunk/BNC/src/PPP_free/bncpppclient.h	(revision 6066)
+++ trunk/BNC/src/PPP_free/bncpppclient.h	(revision 6067)
@@ -40,5 +40,5 @@
 class bncPPPclient : public bncEphUser {
  public:
-  bncPPPclient(QByteArray staID, t_pppOptions* opt);
+  bncPPPclient(QByteArray staID, const t_pppOptions* opt);
   ~bncPPPclient();
   void                putNewObs(const t_obs& pp);
Index: trunk/BNC/src/PPP_free/pppClient.cpp
===================================================================
--- trunk/BNC/src/PPP_free/pppClient.cpp	(revision 6066)
+++ trunk/BNC/src/PPP_free/pppClient.cpp	(revision 6067)
@@ -58,10 +58,10 @@
 // Global variable holding thread-specific pointers
 //////////////////////////////////////////////////////////////////////////////
-t_pppClient* CLIENT = 0;
+t_pppClient* PPP_CLIENT = 0;
 
 // Static function returning thread-specific pointer
 //////////////////////////////////////////////////////////////////////////////
 t_pppClient* t_pppClient::instance() {
-  return CLIENT;
+  return PPP_CLIENT;
 }
 
@@ -69,7 +69,8 @@
 //////////////////////////////////////////////////////////////////////////////
 t_pppClient::t_pppClient(const t_pppOptions* opt) {
-  _opt      = new t_pppOptions(*opt);
-  _log      = new ostringstream();
-  CLIENT = this;
+  _opt       = new t_pppOptions(*opt);
+  _log       = new ostringstream();
+  _client    = new bncPPPclient(QByteArray(_opt->_roverName.c_str()), _opt);
+  PPP_CLIENT = this;
 }
 
@@ -79,4 +80,5 @@
   delete _log;
   delete _opt;
+  delete _client;
 }
 
Index: trunk/BNC/src/PPP_free/pppClient.h
===================================================================
--- trunk/BNC/src/PPP_free/pppClient.h	(revision 6066)
+++ trunk/BNC/src/PPP_free/pppClient.h	(revision 6067)
@@ -7,6 +7,5 @@
 #include "ephemeris.h"
 #include "pppOptions.h"
-
-class bncAntex;
+#include "bncpppclient.h"
 
 namespace BNC_PPP {
@@ -23,19 +22,16 @@
   void processEpoch(const std::vector<t_satObs*>& satObs, t_output* output);
 
+  static t_pppClient* instance();
   std::ostringstream& log() {return *_log;}
-  const t_pppOptions* opt() const {return _opt;}
-
-  static t_pppClient* instance();
 
  private:
-  std::ostringstream*       _log; 
-  t_pppOptions*             _opt; 
+  std::ostringstream* _log; 
+  t_pppOptions*       _opt;
+  bncPPPclient*       _client;
 };
 
 }; // namespace BNC_PPP
 
-#define PPP_CLIENT (BNC_PPP::t_pppClient::instance())
-#define LOG        (BNC_PPP::t_pppClient::instance()->log())
-#define OPT        (BNC_PPP::t_pppClient::instance()->opt())
+#define LOG (BNC_PPP::t_pppClient::instance()->log())
 
 #endif
