Changeset 4945 in ntrip for trunk


Ignore:
Timestamp:
Feb 23, 2013, 4:14:08 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GnssCenter/thrift/test2/server.cpp

    r4944 r4945  
    2424};
    2525
    26 class myProcessorFactory : virtual public TProcessorFactory {
     26class t_connection {
     27 public:
     28  shared_ptr<myService>  _service;
     29  shared_ptr<TProcessor> _processor;
     30  shared_ptr<TProtocol>  _protocolInp;
     31  shared_ptr<TProtocol>  _protocolOut;
     32  shared_ptr<TTransport> _transport;
     33};
     34
     35class myProcessorFactory : public TProcessorFactory {
    2736 public:
    2837  myProcessorFactory() {};
     
    3140    shared_ptr<TProcessor> processor(new myServiceProcessor(service));
    3241    cout << "connection " << endl;
     42   
     43    t_connection connection;
     44    connection._service     = service;
     45    connection._processor   = processor;
     46    connection._protocolInp = info.input;
     47    connection._protocolOut = info.output;
     48    connection._transport   = info.transport;
     49   
    3350    return processor;
    3451  }
Note: See TracChangeset for help on using the changeset viewer.