-
大小: 0.14M文件類型: .rar金幣: 1下載: 0 次發(fā)布日期: 2020-12-25
- 語(yǔ)言: C#
- 標(biāo)簽: Socket??C#??網(wǎng)絡(luò)??c??
資源簡(jiǎn)介
GetHostInfo-C# Socket編程(2)識(shí)別網(wǎng)絡(luò)主機(jī)
代碼片段和文件信息
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();
????????}
????????///?
????????///?顯示本機(jī)IP信息
????????///?
????????///?
????????///?
????????private?void?btn_localIP_Click(object?sender?EventArgs?e)
????????{
????????????this.rtb_local.Clear();
????????????//獲取本地主機(jī)名
????????????string?localHostName?=?Dns.GetHostName();
????????????AppendRtbText(this.rtb_local?string.Format(“本機(jī)主機(jī)名:{0}“?localHo
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件??????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個(gè)文件信息
評(píng)論
共有 條評(píng)論