jdk5.0 document:networking ipv6 user guide for jdk/jre 5.0
java\jdk150-hh\jdk150.chm::/jdk150/guide/net/ipv6_guide/index.html#overview">overview java\jdk150-hh\jdk150.chm::/jdk150/guide/net/ipv6_guide/index.html#supported">supported operating systems java\jdk150-hh\jdk150.chm::/jdk150/guide/net/ipv6_guide/index.html#using">using ipv6 in java java\jdk150-hh\jdk150.chm::/jdk150/guide/net/ipv6_guide/index.html#details">details on ipv6 support in java java\jdk150-hh\jdk150.chm::/jdk150/guide/net/ipv6_guide/index.html#special">special ipv6 address types java\jdk150-hh\jdk150.chm::/jdk150/guide/net/ipv6_guide/index.html#ipv6-related">ipv6-related system properties java\jdk150-hh\jdk150.chm::/jdk150/guide/net/ipv6_guide/index.html#dual">dual-stack node java\jdk150-hh\jdk150.chm::/jdk150/guide/net/ipv6_guide/index.html#java">java application impact java\jdk150-hh\jdk150.chm::/jdk150/guide/net/ipv6_guide/index.html#ipv6-networking">ipv6 networking propertiesoverview 【程序编程相关:JAVA:附加码生成器(图片)】
this document covers the following topics: 【推荐阅读:strutsr源码解读】
with the release of j2se 1.4 in february 2002, java began supporting ipv6 on solaris and linux. support for ipv6 on windows was added with j2se 1.5. while other languages, such as c and c++ can support ipv6, there are some major advantages to java: 【扩展信息:JAVA:MD5加密器】
within the past few years ipv6 has gained much greater acceptance in the industry, especially in certain regions of the world, i.e., europe and the asian pacific. extensibility, mobility, quality of service, larger address space, auto-configuration, security, multi- homing, anycast and multicast, and renumbering—these are some of the features of ipv6 that make it desirable.
with java you invest in a single code base that is both ipv4- and ipv6-ready. your existing java applications are already ipv6-enabled. migration to ipv6 is easywe will prove these statements with code examples below and provide additional details on ipv6 support.
个人观点:通过一些移植的工作,本人认为java在ipv6支持与移植方面确实有自身的优势,由于是面向对象的语言,地址类inetaddress很容易的派生出inet6address与inet4address,在代码的改动上可以说非常的小,尤其针对于c语言.就像jdk帮助文档里提到的,java网络代码向ipv6过渡是非常简单的,代码本身可以轻松的过渡到v4/v6双支持,这对java程序员来说确实是一大幸事.
supported operating systems
the following operating systems are now supported by the j2se reference implementation:
solaris 8 and higher linux kernel 2.1.2 and higher (kernel 2.4.0 and higher recommended for better ipv6 support) windows xp sp1 and windows 2003个人观点:jdk1.4.2对于solaris and linux中ipv6的支持没有什么问题,但在windows环境下java对ipv6的支持确实有限,可能这与当时windows版本本身对ipv6支持的局限性有关.记得曾经在windowxp下面用jdk1.4.2试图编写过ipv6的网络程序,但是serversocket绑定的时候就会报错-协议类型不支持.
目前,windows2000/xp/2003对于ipv6都提供了基本的支持,jdk1.5在windows环境中对于ipv6的支持是理所应当的了.
using ipv6 in java
using ipv6 in java is easy; it is transparent and automatic. unlike in many other languages, no porting is necessary. in fact, there is no need to even recompile the source files.~确实是令人兴奋,很多工作在jdk中做好了,上层的改动就简单多了!
consider an example from java\jdk150-hh\jdk150.chm::/jdk150/h2hh-404.html">the java tutorial:
socket echosocket = null; printwriter out = null; bufferedreader in = null;
... 下一页