微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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.jb51.cc/csharp/93511.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐