public Form1() { InitializeComponent(); _hp = new HttpProxy("127.0.0.1", 9000); _hp.OnTextChangeEvent += SetTextHandler; stopProxy.Enabled = false; roundRobin.Checked = true; }
public HttpProxy GetInstance() { if (pro != null) { return pro; } else { pro = new HttpProxy(); return pro; } }
private void UpdateStatus(object sender, EventArgs e) { this.txt_connectNum.Text = HttpProxy.GetClientNumber().ToString(); this.txt_NumberOfRequest.Text = HttpProxy.NumberOfRequest.ToString(); }