Streamed implementation. Limited input buffer.
[LanSpider.git] / src / LanSpider / Program.cs
blob409550f2a2768d166909aa8f2fa349b295b7b684
1 using System;
3 namespace LanSpider
5 internal static class Program
7 /// <summary>
8 /// The main entry point for the application.
9 /// </summary>
10 [STAThread]
11 private static void Main()
13 using (LanSpider spider = new LanSpider(NetworkBrowser.Instance))
15 try
17 Console.WriteLine("Found {0} computers in network.", spider.NumComputers);
18 Console.WriteLine("{0} shares known.", spider.NumKnownShares);
19 Console.WriteLine("Have {0} shares to index.", spider.NumAvailableShares);
21 spider.IndexUnknownShares();
22 spider.IndexKnownAvailableShares();
24 catch (Exception ex)
26 Console.WriteLine("{0}", ex);
27 Console.ReadKey();