public Add_Column(CrawlerForm fm) { this.fm2 = fm; this.InitializeComponent(); }
public WEB_XML_Manager(CrawlerForm fm) { this.fm2 = fm; this.InitializeComponent(); }
public void SendRequest(CrawlerForm.MyWebRequest request) { this.ResponseUri = request.RequestUri; request.Header = string.Concat(new object[] { request.Method, " ", this.ResponseUri.PathAndQuery, " HTTP/1.0\r\n", request.Headers }); this.socket.Send(Encoding.ASCII.GetBytes(request.Header)); }
public void Connect(CrawlerForm.MyWebRequest request) { this.ResponseUri = request.RequestUri; this.socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); IPEndPoint remoteEP = new IPEndPoint(Dns.Resolve(this.ResponseUri.Host).AddressList[0], this.ResponseUri.Port); this.socket.Connect(remoteEP); }
public static CrawlerForm.MyWebRequest Create(Uri uri, CrawlerForm.MyWebRequest AliveRequest, bool bKeepAlive) { if ((((bKeepAlive && (AliveRequest != null)) && ((AliveRequest.response != null) && AliveRequest.response.KeepAlive)) && AliveRequest.response.socket.Connected) && (AliveRequest.RequestUri.Host == uri.Host)) { AliveRequest.RequestUri = uri; return AliveRequest; } return new CrawlerForm.MyWebRequest(uri, bKeepAlive); }
public Rules_panel(CrawlerForm fm) { this.fm2 = fm; this.InitializeComponent(); }