예제 #1
0
 static void Main(string[] args)
 {
     int port = 8585;
     HelloHandler handler = new HelloHandler();
     helloSvc.Processor proc = new helloSvc.Processor(handler);
     TServerTransport trans = new TServerSocket(port, 0, true);
     TServer server = new TSimpleServer(proc, trans);
     Console.WriteLine("Server running on port " + port);
     server.Serve();
 }
예제 #2
0
        static void Main(string[] args)
        {
            int          port    = 8585;
            HelloHandler handler = new HelloHandler();

            helloSvc.Processor proc   = new helloSvc.Processor(handler);
            TServerTransport   trans  = new TServerSocket(port, 0, true);
            TServer            server = new TSimpleServer(proc, trans);

            Console.WriteLine("Server running on port " + port);
            server.Serve();
        }