示例#1
0
        /// <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;
        }
示例#2
0
        /// <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;
        }
示例#3
0
        private void btnInterFaceSummary_Click(object sender, EventArgs e)
        {
            string info = InterMethod.ShowInterfaceSummary();

            txtInfo.Text += info;
        }