Exemple #1
0
 public static void Seed2Queue(
     UrlAddressQueue urlQueue,
     SpiderSetting setting)
 {
     if (setting.Seeds != null && urlQueue != null)
     {
         var c = setting.Seeds.GetSeeds();
         foreach (var i in c)
         {
             urlQueue.EnQueue(new UrlInfo(i, 0));
         }
     }
 }
Exemple #2
0
 public SpiderWorker(UrlAddressQueue queue)
 {
     AddressQueue = queue;
 }
Exemple #3
0
 public SpiderMaster()
 {
     urlQueue    = new UrlAddressQueue();
     urlPool     = new UrlAddressPool();
 }
Exemple #4
0
 public SpiderWorkerList(UrlAddressQueue queue)
 {
     AddressQueue = queue;
 }
Exemple #5
0
 public SpiderThreadWorker(UrlAddressQueue queue)
     :base(queue)
 {
     InnerThread = new Thread(new ThreadStart(ThreadProc));
 }