Ignore:
Timestamp:
Feb 23, 2013, 3:54:37 PM (9 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r4943 r4944  
    1616using namespace ::apache::thrift::server;
    1717
    18 class myServiceHandler : virtual public myServiceIf {
     18class myService : virtual public myServiceIf {
    1919 public:
    20   myServiceHandler() {}
     20  myService() {}
    2121  void answer(std::string& answ, const std::string& question) {
    2222    // implemented on the client-side only
     
    2727 public:
    2828  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;
    3233    return processor;
    3334  }
Note: See TracChangeset for help on using the changeset viewer.