コード例 #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);
 }