90 d_handler(new TserverClass()),
91 d_processor(new GNURadio::ControlPortProcessor(d_handler)),
94 d_protocolFactory(new thrift::protocol::TBinaryProtocolFactory())
99 unsigned int port, nthreads, buffersize;
100 std::string thrift_config_file =
103 if (thrift_config_file.length() > 0) {
123 d_serverTransport.reset(
new thrift::transport::TServerSocket(port));
125 d_transportFactory.reset(
126 new thrift_server_template::TBufferedTransportFactory(buffersize));
132 new thrift::server::TSimpleServer(
133 d_processor, d_serverTransport, d_transportFactory, d_protocolFactory));
136 boost::shared_ptr<thrift::concurrency::ThreadManager> threadManager(
137 thrift::concurrency::ThreadManager::newSimpleThreadManager(nthreads));
139 threadManager->threadFactory(
140 boost::shared_ptr<thrift::concurrency::PlatformThreadFactory>(
141 new thrift::concurrency::PlatformThreadFactory()));
143 threadManager->start();
146 new thrift::server::TThreadPoolServer(d_processor,