97 d_handler(new TserverClass()),
98 d_processor(new GNURadio::ControlPortProcessor(d_handler)),
100 d_transportFactory(),
101 d_protocolFactory(new thrift::protocol::TBinaryProtocolFactory())
106 unsigned int port, nthreads, buffersize;
107 std::string thrift_config_file =
110 if (thrift_config_file.length() > 0) {
130 d_serverTransport.reset(
new thrift::transport::TServerSocket(port));
132 d_transportFactory.reset(
133 new thrift_server_template::TBufferedTransportFactory(buffersize));
139 new thrift::server::TSimpleServer(
140 d_processor, d_serverTransport, d_transportFactory, d_protocolFactory));
143 gr::rpc_sptr<thrift::concurrency::ThreadManager>::t threadManager(
144 thrift::concurrency::ThreadManager::newSimpleThreadManager(nthreads));
146#ifdef THRIFT_HAS_THREADFACTORY_H
147 threadManager->threadFactory(gr::rpc_sptr<thrift::concurrency::ThreadFactory>::t(
148 new thrift::concurrency::ThreadFactory()));
150 threadManager->threadFactory(
151 gr::rpc_sptr<thrift::concurrency::PlatformThreadFactory>::t(
152 new thrift::concurrency::PlatformThreadFactory()));
155 threadManager->start();
158 new thrift::server::TThreadPoolServer(d_processor,