Exemplo n.º 1
0
        public TraceRoute()
        {
            InitializeComponent();

            miv = new MethodInvoker(UpdateRoute);
            NetworkInterface validNic = nil.Interfaces[0];

            foreach (NetworkInterface nic in nil.Interfaces)
            {
                if (nic.IsEnabled && !nic.isLoopback)
                {
                    validNic = nic;
                }
            }
            trace                = new Metro.TransportLayer.Icmp.IcmpTraceRoute(validNic.Address);
            trace.RouteUpdate   += new Metro.TransportLayer.Icmp.RouteUpdateHandler(trace_RouteUpdate);
            trace.TraceFinished += new Metro.TransportLayer.Icmp.TraceFinishedHandler(trace_TraceFinished);
        }
Exemplo n.º 2
0
        public TraceRoute()
        {
            InitializeComponent();

            miv = new MethodInvoker(UpdateRoute);
            NetworkInterface validNic = nil.Interfaces[0];
            foreach(NetworkInterface nic in nil.Interfaces) {
                if(nic.IsEnabled && !nic.isLoopback) {
                    validNic = nic;
                }
            }
            trace = new Metro.TransportLayer.Icmp.IcmpTraceRoute(validNic.Address);
            trace.RouteUpdate += new Metro.TransportLayer.Icmp.RouteUpdateHandler(trace_RouteUpdate);
            trace.TraceFinished += new Metro.TransportLayer.Icmp.TraceFinishedHandler(trace_TraceFinished);
        }