/// <summary> /// Ping 外部IP /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnPing_Click(object sender, EventArgs e) { int count = 0; string[] strurl = new string[] { "10.0.0.1", "www.baidu.com", "10.83.29.212" }; string info = (InterMethod.MyPing(strurl, out count)); txtInfo.Text += info; }
/// <summary> /// 计算建立的 TCP 连接数。 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnTCPCount_Click(object sender, EventArgs e) { string info = InterMethod.CountTcpConnections(); txtInfo.Text += info; }
private void btnInterFaceSummary_Click(object sender, EventArgs e) { string info = InterMethod.ShowInterfaceSummary(); txtInfo.Text += info; }