コード例 #1
0
        public static void Run(int port)
        {
            HelloWorldServer client = new HelloWorldServer();

            HelloWorldService.Processor processor = new global::HelloWorldService.Processor(client);
            TServerTransport            transport = new TServerSocket(port);
            TServer server = new TThreadPoolServer(processor, transport);

            Console.WriteLine("Starting the server...");

            server.Serve();

            transport.Close();
        }
コード例 #2
0
 void StartServer()
 {
     HelloWorldServer.Run(SrvPort);
 }