c# – 解释System.Net.IPAddress的实例属性

前端之家收集整理的这篇文章主要介绍了c# – 解释System.Net.IPAddress的实例属性前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我在理解 System.Net.IPAddress class时遇到了一些麻烦,因为我不知道在哪里寻找一些属性所指的定义.具体来说,是什么:
IPAddress.IsIPv6LinkLocal
 IPAddress.IsIPv6Multicast
 IPAddress.IsIPv6SiteLocal
 IPAddress.IsIPv6Teredo

我也很乐意接受一个解释这些概念的资源的答案. MSDN网站证明不足.

解决方法

IPAddress.IsIPv6LinkLocal

A link-local address is an IP address
that is intended only for
communications within the local
subnetwork. Routers do not forward
packets with link-local addresses.

IPAddress.IsIPv6Multicast

A multicast address is a logical
identifier for a group of hosts in a
computer network,that are available
to process datagrams or frames
intended to be multicast for a
designated network service. Multicast
addressing can be used in the Link
Layer (Layer 2 in the OSI model),such
as Ethernet multicast,and at the
Internet Layer (Layer 3 for OSI) for
Internet Protocol Version 4 (IPv4) or
Version 6 (IPv6) multicast.

IPAddress.IsIPv6SiteLocal

A unique local address (ULA) is an
IPv6 address in the block fc00::/7,
defined in RFC 4193. It is the IPv6
counterpart of the IPv4 private
address. Unique local addresses are
available for use in private networks,
e.g. inside a single site or
organisation,or spanning a limited
number of sites or organisations. They
are not routable in the global IPv6
Internet.

IPAddress.IsIPv6Teredo

In computer networking,Teredo is a transition technology that gives full IPv6 connectivity for IPv6-capable hosts which are on the IPv4 Internet but which have no direct native connection to an IPv6 network. Compared to other similar protocols its distinguishing feature is that it is able to perform its function even from behind network address translation (NAT) devices such as home routers.

原文链接:https://www.f2er.com/csharp/93511.html

猜你在找的C#相关文章