예제 #1
0
        /// <summary>
        /// This will generate the whole 192.168.X.X range.
        /// </summary>
        private static void DefaultScanSingle()
        {
            var scan = new DefaultScan();

            scan.IPAddressGenerated += IPGenerated;

            scan.Scan("192.168.X.X");
        }
예제 #2
0
        /// <summary>
        /// Generates the whole 192.X.X.X range with modified active worker threads.
        /// </summary>
        private static void DefaultScanWithModifiedThreadCount()
        {
            var scan = new DefaultScan();

            scan.IPAddressGenerated += IPGenerated;
            scan.MinimumThreadCount  = 50;
            scan.MaximumThreadCount  = 100;

            scan.Scan("192.X.X.X");
        }
예제 #3
0
        /// <summary>
        /// This will generate the 192.168.1.X and 192.168.0.X ranges.
        /// </summary>
        private static void DefaultScanList()
        {
            var scan = new DefaultScan();

            scan.IPAddressGenerated += IPGenerated;

            var targetMasks = new List <string>
            {
                "192.168.1.X",
                "192.168.0.X"
            };

            scan.Scan(targetMasks);
        }