Changeset 6067 in ntrip for trunk/BNC/src/PPP_free/pppClient.cpp
- Timestamp:
- Sep 7, 2014, 10:10:02 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP_free/pppClient.cpp
r6051 r6067 58 58 // Global variable holding thread-specific pointers 59 59 ////////////////////////////////////////////////////////////////////////////// 60 t_pppClient* CLIENT = 0;60 t_pppClient* PPP_CLIENT = 0; 61 61 62 62 // Static function returning thread-specific pointer 63 63 ////////////////////////////////////////////////////////////////////////////// 64 64 t_pppClient* t_pppClient::instance() { 65 return CLIENT;65 return PPP_CLIENT; 66 66 } 67 67 … … 69 69 ////////////////////////////////////////////////////////////////////////////// 70 70 t_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; 74 75 } 75 76 … … 79 80 delete _log; 80 81 delete _opt; 82 delete _client; 81 83 } 82 84
Note:
See TracChangeset
for help on using the changeset viewer.