Ignore:
Timestamp:
Sep 7, 2014, 10:10:02 AM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP_free/pppClient.cpp

    r6051 r6067  
    5858// Global variable holding thread-specific pointers
    5959//////////////////////////////////////////////////////////////////////////////
    60 t_pppClient* CLIENT = 0;
     60t_pppClient* PPP_CLIENT = 0;
    6161
    6262// Static function returning thread-specific pointer
    6363//////////////////////////////////////////////////////////////////////////////
    6464t_pppClient* t_pppClient::instance() {
    65   return CLIENT;
     65  return PPP_CLIENT;
    6666}
    6767
     
    6969//////////////////////////////////////////////////////////////////////////////
    7070t_pppClient::t_pppClient(const t_pppOptions* opt) {
    71   _opt      = new t_pppOptions(*opt);
    72   _log      = new ostringstream();
    73   CLIENT = this;
     71  _opt       = new t_pppOptions(*opt);
     72  _log       = new ostringstream();
     73  _client    = new bncPPPclient(QByteArray(_opt->_roverName.c_str()), _opt);
     74  PPP_CLIENT = this;
    7475}
    7576
     
    7980  delete _log;
    8081  delete _opt;
     82  delete _client;
    8183}
    8284
Note: See TracChangeset for help on using the changeset viewer.