示例#1
0
		public DocumentWorker(Spider spider, string[] contenttypes, int contentsize, string[] excdirs, Boolean exclude)
		{
			m_spider = spider;
            m_content = contenttypes;
            m_contentlength = contentsize;
            m_excdirs = excdirs;
            excludeindexes = exclude;
		}
示例#2
0
文件: Wikto.cs 项目: liorvh/wikto
 private void btnHTStop_Click(object sender, EventArgs e)
 {
     try
     {
         spd.reset();
         spd.Quit = true;
         spd.End();
         //spd.Quit = true;
         //spd.End();
         //spd.reset();
         spd = null;
         GC.Collect();
     }
     catch { GC.Collect(); }
 }
示例#3
0
文件: Wikto.cs 项目: liorvh/wikto
 private void EndInsieWinsie(IAsyncResult arResult)
 {
     this.Invoke(this.dlgControlDisable, new Object[] { this.btnHTStart, true });
     this.Invoke(this.dlgControlDisable, new Object[] { this.btnHTStop, false });
     this.Invoke(this.dlgControlTextSet, new Object[] { this.lblMirrorStatus, "Not Running" });
     this.Invoke(this.dlgControlProgMax, new Object[] { this.prgHT, 100 });
     this.Invoke(this.dlgControlProgVal, new Object[] { this.prgHT, 0 });
     try
     {
         spd.Quit = true;
         spd.End();
         spd.reset();
         spd = null;
         GC.Collect();
     }
     catch { GC.Collect(); }
 }
示例#4
0
文件: Wikto.cs 项目: liorvh/wikto
 private void GoInsieWinsie()
 {
     this.Invoke(this.dlgControlDisable, new Object[] { this.btnHTStart, false });
     this.Invoke(this.dlgControlDisable, new Object[] { this.btnHTStop, true });
     this.Invoke(this.dlgControlListCls, new Object[] { this.lstMirrorDirs });
     this.Invoke(this.dlgControlListCls, new Object[] { this.lstMirrorLinks });
     this.Invoke(this.dlgControlTextSet, new Object[] { this.lblMirrorStatus, "Spidering Target..." });
     this.Invoke(this.dlgControlProgVal, new Object[] { this.prgHT, 0 });
     System.Uri uri;
     String Hostname = this.Invoke(this.dlgControlTextGet, new Object[] { this.txtHTTarget }).ToString();
     String Port = this.Invoke(this.dlgControlTextGet, new Object[] { this.txt_SpiderPort }).ToString();
     if (chk_SpiderSSL.Checked)
     {
         uri = new System.Uri("https://" + Hostname + ":" + Port);
     }
     else
     {
         uri = new System.Uri("http://" + Hostname + ":" + Port);
     }
     //System.Uri uri = new System.Uri("http://" + this.Invoke(this.dlgControlTextGet, new Object[] { this.txtHTTarget }).ToString());
     Boolean excludeidx = false;
     String excludes = "";
     if (chk_ignoreidx.Checked)
     {
         excludes = this.txt_ConfigSpiderExclude.Text;
         excludeidx = true;
     }
     else
     {
         excludes = this.txt_ConfigSpiderExclude.Text + "," + this.txt_idxflags.Text;
         excludeidx = false;
     }
     spd = new Spider(excludes, this.txt_ConfigSpiderExtension.Text, this.txt_content.Text, (int)this.nud_contentsize.Value, this.txt_excdirs.Text, excludeidx);
     spd.ReportTo = this;
     spd.Start(uri, System.Convert.ToInt32(NUPDOWNspider.Value));
 }