예제 #1
0
파일: Form1.cs 프로젝트: ndizigiye/Proxy
 public Form1()
 {
     InitializeComponent();
     _hp = new HttpProxy("127.0.0.1", 9000);
     _hp.OnTextChangeEvent += SetTextHandler;
     stopProxy.Enabled = false;
     roundRobin.Checked = true;
 }
예제 #2
0
 public HttpProxy GetInstance()
 {
     if (pro != null)
     {
         return pro;
     }
     else
     {
         pro = new HttpProxy();
         return pro;
     }
 }
예제 #3
0
 private void UpdateStatus(object sender, EventArgs e)
 {
     this.txt_connectNum.Text      = HttpProxy.GetClientNumber().ToString();
     this.txt_NumberOfRequest.Text = HttpProxy.NumberOfRequest.ToString();
 }