sock.bind(new InetSocketAddress(port));
port = sock.getLocalPort();
} catch (IOException ex) {
throw new TTransportException(ex);
}
TServerTransport transport = new TBufferedServerSocket(sock, 32 * 1024);
TThreadPoolServer.Args options = new TThreadPoolServer.Args(transport);
options.protocolFactory(ThriftUtil.protocolFactory());
options.transportFactory(ThriftUtil.transportFactory());
processor = new TServerUtils.TimedProcessor(processor, serverName, threadName);
options.processorFactory(new ClientInfoProcessorFactory(processor));