コード例 #1
0
ファイル: Add_Column.cs プロジェクト: vanloc0301/mychongchong
 public Add_Column(CrawlerForm fm)
 {
     this.fm2 = fm;
     this.InitializeComponent();
 }
コード例 #2
0
 public WEB_XML_Manager(CrawlerForm fm)
 {
     this.fm2 = fm;
     this.InitializeComponent();
 }
コード例 #3
0
 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));
 }
コード例 #4
0
 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);
 }
コード例 #5
0
 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);
 }
コード例 #6
0
 public Rules_panel(CrawlerForm fm)
 {
     this.fm2 = fm;
     this.InitializeComponent();
 }