A collaboration between Ed Rantanen and myself to provide basic visualization of a trace route in a flexible manner. This should allow the swapping of different graphic libraries such as Graphviz, Flot, etc.

Program.cs 777B

    using System.Linq; using VisualTraceRoute.Net; using VisualTraceRoute.Text; namespace VisualTraceRoute.Console { public class Program { public static void Main(string[] args) { // Initialize the parser. Parser parser = new Parser(@"..\..\..\..\VisualTraceRoute\VisualTraceRoute.Text\sample-console.txt"); // Read the template in. parser.ReadTemplate(); // Outputs the template to the console screen. parser.ToStream(System.Console.OpenStandardOutput(), new TraceRoute[] { TraceRoute.ByHostName("google.com") }); System.Console.WriteLine("Press any key to continue..."); System.Console.ReadKey(); } } }