예제 #1
0
        public void PositionWindow(Demo4Input input)
        {
            Console.SetWindowSize(45, 15);
            Console.SetBufferSize(45, 15);

            int clientNumber = int.Parse(input.NodeNumberFlag);
            ConsoleApp.MoveWindow(100 + (200 * (clientNumber - 1)), 100);
        }
예제 #2
0
 public void Execute(Demo4Input input)
 {
     using (var context = new Context())
         using (var socket = context.Response())
         {
             socket.Connect("tcp://localhost:5560");
             HandleRequests(socket, input.NodeNumberFlag);
         }
 }
예제 #3
0
        public void PositionWindow(Demo4Input input)
        {
            Console.SetWindowSize(45, 15);
            Console.SetBufferSize(45, 15);

            int clientNumber = int.Parse(input.NodeNumberFlag);

            ConsoleApp.MoveWindow(100 + (200 * (clientNumber - 1)), 400);
        }
예제 #4
0
 public void Execute(Demo4Input input)
 {
     using (var context = new Context())
     using (var socket = context.Request())
     {
         socket.Connect("tcp://localhost:5559");
         SendRequests(socket, input.NodeNumberFlag);
     }
 }
예제 #5
0
        public void Execute(Demo4Input input)
        {
            using (var context = new Context())
            using (var frontend = context.Router())
            using (var backend = context.Dealer())
            {
                frontend.Bind("tcp://*:5559");
                backend.Bind("tcp://*:5560");

                Console.WriteLine("I'm the proxy!");
                frontend.Proxy(backend);
            }
        }
예제 #6
0
        public void Execute(Demo4Input input)
        {
            using (var context = new Context())
                using (var frontend = context.Router())
                    using (var backend = context.Dealer())
                    {
                        frontend.Bind("tcp://*:5559");
                        backend.Bind("tcp://*:5560");

                        Console.WriteLine("I'm the proxy!");
                        frontend.Proxy(backend);
                    }
        }
예제 #7
0
 public void PositionWindow(Demo4Input input)
 {
     Console.SetWindowSize(45, 15);
     Console.SetBufferSize(45, 15);
     ConsoleApp.MoveWindow(875, 300);
 }
예제 #8
0
 public void PositionWindow(Demo4Input input)
 {
     Console.SetWindowSize(45, 15);
     Console.SetBufferSize(45, 15);
     ConsoleApp.MoveWindow(875, 300);
 }