Changeset 4944 in ntrip for trunk/GnssCenter/thrift/test2/server.cpp
- Timestamp:
- Feb 23, 2013, 3:54:37 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GnssCenter/thrift/test2/server.cpp
r4943 r4944 16 16 using namespace ::apache::thrift::server; 17 17 18 class myService Handler: virtual public myServiceIf {18 class myService : virtual public myServiceIf { 19 19 public: 20 myService Handler() {}20 myService() {} 21 21 void answer(std::string& answ, const std::string& question) { 22 22 // implemented on the client-side only … … 27 27 public: 28 28 myProcessorFactory() {}; 29 shared_ptr<TProcessor> getProcessor(const TConnectionInfo& info) { 30 shared_ptr<myServiceHandler> handler(new myServiceHandler()); 31 shared_ptr<TProcessor> processor(new myServiceProcessor(handler)); 29 shared_ptr<TProcessor> getProcessor(const TConnectionInfo& info) { 30 shared_ptr<myService> service(new myService()); 31 shared_ptr<TProcessor> processor(new myServiceProcessor(service)); 32 cout << "connection " << endl; 32 33 return processor; 33 34 }
Note:
See TracChangeset
for help on using the changeset viewer.