예제 #1
0
파일: Client.cs 프로젝트: vgrokk/ZeroMQDemo
        public void PositionWindow(Demo2Input input)
        {
            Console.SetWindowSize(45, 20);
            Console.SetBufferSize(45, 20);

            var clientNumber = int.Parse(input.ClientIdFlag);

            ConsoleApp.MoveWindow(450 + (25 * (clientNumber - 1)), 100 + (200 * (clientNumber - 1)));
        }
예제 #2
0
 public void Execute(Demo2Input input)
 {
     using (var context = new Context())
         using (var publisher = context.Publish())
         {
             publisher.Bind("tcp://*:5556");
             PublishMessages(publisher);
         }
 }
예제 #3
0
 public void Execute(Demo2Input input)
 {
     using (var context = new Context())
     using (var publisher = context.Publish())
     {
         publisher.Bind("tcp://*:5556");
         PublishMessages(publisher);
     }
 }
예제 #4
0
파일: Client.cs 프로젝트: vgrokk/ZeroMQDemo
        public void Execute(Demo2Input input)
        {
            using (var context = new Context())
                using (var subscriber = context.Sub())
                {
                    AddSubscription(subscriber, input.ZipCodeFlag);
                    subscriber.Connect("tcp://localhost:5556");

                    ListenForEvents(subscriber);
                }
        }
예제 #5
0
 public void PositionWindow(Demo2Input input)
 {
     Console.SetWindowSize(45, 20);
     Console.SetBufferSize(45, 20);
     ConsoleApp.MoveWindow(25, 100);
 }
예제 #6
0
 public void PositionWindow(Demo2Input input)
 {
     Console.SetWindowSize(45, 20);
     Console.SetBufferSize(45, 20);
     ConsoleApp.MoveWindow(25, 100);
 }