【文件属性】:
文件名称:IP、主机字节序、网络字节序、互转
文件大小:20KB
文件格式:RAR
更新时间:2020-01-26 05:34:52
IP地址 主机字节序 网络字节序 互转 C#
IP、主机字节序、网络字节序、互转
-------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Threading.Tasks;
namespace _012网络_主机_字节序
{
class Program
{
static void Main(string[] args)
{
int s = NetEndianHostEndianIP.iPnetEndian("127.0.0.1");
Console.WriteLine("IP转换网络字节序后值为:{0}", s);
string ss = NetEndianHostEndianIP.netEndianIp(s);
Console.WriteLine("网络字节序转换IP后值为:{0}", ss);
Console.ReadKey();
}
}
}
【文件预览】:
_012网络(主机)字节序
----_012网络(主机)字节序.csproj(3KB)
----Program.cs(615B)
----Properties()
--------AssemblyInfo.cs(1KB)
----App.config(187B)
----obj()
--------Debug()
----IpNetEndian.cs(2KB)
----bin()
--------Debug()
--------Release()