コード例 #1
0
ファイル: Form1.cs プロジェクト: ganjian/CheckWifiWS
        /// <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
ファイル: Form1.cs プロジェクト: ganjian/CheckWifiWS
        /// <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
ファイル: Form1.cs プロジェクト: ganjian/CheckWifiWS
        private void btnInterFaceSummary_Click(object sender, EventArgs e)
        {
            string info = InterMethod.ShowInterfaceSummary();

            txtInfo.Text += info;
        }