- Timestamp:
- Feb 23, 2013, 4:14:08 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GnssCenter/thrift/test2/server.cpp
r4944 r4945 24 24 }; 25 25 26 class myProcessorFactory : virtual public TProcessorFactory { 26 class 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 35 class myProcessorFactory : public TProcessorFactory { 27 36 public: 28 37 myProcessorFactory() {}; … … 31 40 shared_ptr<TProcessor> processor(new myServiceProcessor(service)); 32 41 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 33 50 return processor; 34 51 }
Note:
See TracChangeset
for help on using the changeset viewer.