• 大小: 0.14M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-25
  • 语言: C#
  • 标签: Socket  C#  网络  c  

资源简介

GetHostInfo-C# Socket编程(2)识别网络主机

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net;

namespace GetHostAddress
{
    public partial class Main_From : Form
    {
        public Main_From()
        {
            InitializeComponent();
        }

        /// 
        /// 显示本机IP信息
        /// 

        /// 
        /// 
        private void btn_localIP_Click(object sender EventArgs e)
        {
            this.rtb_local.Clear();
            //获取本地主机名
            string localHostName = Dns.GetHostName();
            AppendRtbText(this.rtb_local string.Format(“本机主机名:{0}“ localHo

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      11776  2012-10-11 17:03  GetHostInfo\GetHostAddress\bin\Debug\GetHostAddress.exe

     文件      24064  2012-10-11 17:03  GetHostInfo\GetHostAddress\bin\Debug\GetHostAddress.pdb

     文件      11600  2012-10-11 17:03  GetHostInfo\GetHostAddress\bin\Debug\GetHostAddress.vshost.exe

     文件        606  2012-10-11 17:03  GetHostInfo\GetHostAddress\Extend\Extensions.cs

     文件       3755  2012-10-11 17:03  GetHostInfo\GetHostAddress\GetHostAddress.csproj

     文件       3122  2012-10-11 17:03  GetHostInfo\GetHostAddress\Main_From.cs

     文件       8069  2012-10-11 17:03  GetHostInfo\GetHostAddress\Main_From.Designer.cs

     文件       5817  2012-10-11 17:03  GetHostInfo\GetHostAddress\Main_From.resx

     文件       6320  2012-10-11 17:03  GetHostInfo\GetHostAddress\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件        372  2012-10-11 17:03  GetHostInfo\GetHostAddress\obj\x86\Debug\GenerateResource.read.1.tlog

     文件        870  2012-10-11 17:03  GetHostInfo\GetHostAddress\obj\x86\Debug\GenerateResource.write.1.tlog

     文件       1040  2012-10-11 17:03  GetHostInfo\GetHostAddress\obj\x86\Debug\GetHostAddress.csproj.FileListAbsolute.txt

     文件      11776  2012-10-11 17:03  GetHostInfo\GetHostAddress\obj\x86\Debug\GetHostAddress.exe

     文件        180  2012-10-11 17:03  GetHostInfo\GetHostAddress\obj\x86\Debug\GetHostAddress.Main_From.resources

     文件      24064  2012-10-11 17:03  GetHostInfo\GetHostAddress\obj\x86\Debug\GetHostAddress.pdb

     文件        180  2012-10-11 17:03  GetHostInfo\GetHostAddress\obj\x86\Debug\GetHostAddress.Properties.Resources.resources

     文件        499  2012-10-11 17:00  GetHostInfo\GetHostAddress\Program.cs

     文件       1376  2012-10-11 17:00  GetHostInfo\GetHostAddress\Properties\AssemblyInfo.cs

     文件       2878  2012-10-11 17:00  GetHostInfo\GetHostAddress\Properties\Resources.Designer.cs

     文件       5612  2012-10-11 17:00  GetHostInfo\GetHostAddress\Properties\Resources.resx

     文件       1099  2012-10-11 17:00  GetHostInfo\GetHostAddress\Properties\Settings.Designer.cs

     文件        249  2012-10-11 17:00  GetHostInfo\GetHostAddress\Properties\Settings.settings

     文件       2291  2012-10-11 17:05  GetHostInfo\GetHostInfo.sln

    ..A..H.     48128  2012-10-11 17:15  GetHostInfo\GetHostInfo.suo

     文件       9728  2012-10-11 17:05  GetHostInfo\GetNetInterfaceInfo\bin\Debug\GetNetInterfaceInfo.exe

     文件      22016  2012-10-11 17:05  GetHostInfo\GetNetInterfaceInfo\bin\Debug\GetNetInterfaceInfo.pdb

     文件      11600  2012-10-11 17:06  GetHostInfo\GetNetInterfaceInfo\bin\Debug\GetNetInterfaceInfo.vshost.exe

     文件       3717  2012-10-11 17:05  GetHostInfo\GetNetInterfaceInfo\GetNetInterfaceInfo.csproj

     文件       2740  2012-10-11 17:05  GetHostInfo\GetNetInterfaceInfo\Main_From.cs

     文件       2458  2012-10-11 17:05  GetHostInfo\GetNetInterfaceInfo\Main_From.Designer.cs

............此处省略100个文件信息

评论

共有 条评论