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); }
public void Execute(Demo4Input input) { using (var context = new Context()) using (var socket = context.Response()) { socket.Connect("tcp://localhost:5560"); HandleRequests(socket, input.NodeNumberFlag); } }
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); }
public void Execute(Demo4Input input) { using (var context = new Context()) using (var socket = context.Request()) { socket.Connect("tcp://localhost:5559"); SendRequests(socket, input.NodeNumberFlag); } }
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); } }
public void PositionWindow(Demo4Input input) { Console.SetWindowSize(45, 15); Console.SetBufferSize(45, 15); ConsoleApp.MoveWindow(875, 300); }