private void CreateNodes() { nodes = new List<Node>(); for (int i = 0; i < NodeCount; i++) { var port = (ushort) (12000 + i); var node = new KyruApplication(port).Node; node.Start(); nodes.Add(node); if (i != 0) { node.Kademlia.AddNode(new IPEndPoint(IPAddress.Loopback, port - 1)); } Thread.Sleep(TestParameters.LocalhostCommunicationTimeout * 5); } KyruTimer.Start(); this.Warn("Waiting for the node initialization dust to settle...\n\n\n\n"); Thread.Sleep(TestParameters.LocalhostCommunicationTimeout * 160); this.Warn("Continuing...\n\n\n\n"); }
private static void Main() { Console.WriteLine("Kyru debug console"); Console.WriteLine(); KyruTimer.Start(); app = new KyruApplication(); app.Start(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); tray = new SystemTray(app); Application.Run(); }