Changeset 4947 in ntrip for trunk


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

Legend:

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

    r4946 r4947  
    3535};
    3636
     37shared_ptr<t_connection> CONNECTION;
     38
    3739class myProcessorFactory : public TProcessorFactory {
    3840 public:
     
    4244    shared_ptr<TProcessor> processor(new myServiceProcessor(service));
    4345    cout << "connection " << endl;
    44    
    45     t_connection connection;
    46     connection._service     = service;
    47     connection._processor   = processor;
    48     connection._protocolInp = info.input;
    49     connection._protocolOut = info.output;
    50     connection._transport   = info.transport;
     46
     47    shared_ptr<t_connection> connection(new t_connection);
     48    connection->_service     = service;
     49    connection->_processor   = processor;
     50    connection->_protocolInp = info.input;
     51    connection->_protocolOut = info.output;
     52    connection->_transport   = info.transport;
    5153   
    5254    return processor;
Note: See TracChangeset for help on using the changeset viewer.