コード例 #1
0
        public static void DiscoverLanMachines()
        {
            Console.Title = "LAN Discovery Runner";
            Console.WriteLine("LAN Discovery Test Console v0.3");
            Console.WriteLine();

            LanDiscoveryManager lanDiscovery = new LanDiscoveryManager();
            List <LanMachine>   lanMachines  = lanDiscovery.GetNetworkMachines();

            printDiscoveredAddresses(lanMachines);

            Console.WriteLine("\nLAN discovery complete.\n");
        } // end method
コード例 #2
0
        public static void DiscoverLanMachines()
        {
            Console.Title = "LAN Discovery Runner";
            Console.WriteLine("LAN Discovery Test Console v0.2");
            Console.WriteLine();

            LanDiscoveryManager lanDiscovery = new LanDiscoveryManager();
            List <IPAddress>    lanMachines  = lanDiscovery.GetNetworkMachines();

            Console.WriteLine("Following IP addresses found on network:");
            printStringList(lanMachines);

            Console.WriteLine();
            Console.WriteLine("LAN discovery complete.");
        } // end method