当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: JDK5.0 Document:Networking IPv6
 

 

 ·java初学及基础问题    »显示摘要«
    摘要: java初学及基础问题(zz)初学java的朋友很可能碰到很多问题,下面收集整理了一些供参考。 1。[问]application和applet各自指什么?在使用中有区别吗? [答]application和applet是利用java语言生成的可运行代码中最常用的两种,两者 都必须在java虚拟机上运行。简单来讲,application更象我们平常用vb,vc等编写 的桌面程序,多以控制台(c......
    摘要: 我们知道,poa规范定义corba对象为具有标识、接口和实现的抽象实体。从客户机的角度来看,对象表示为对象引用,对象引用封装了对象接口类型和标识,并包含足够的信息来定位对象的实现。但从服务器的角度来看又怎样呢?   1、伺服对象  poa规范引入了伺服对象(servant)的概念,使抽象的corba对象能和实现该对象功能的具体编程语言实体彻底分离。这样从服务器的角度来看, corba对象是作......


JDK/JRE5.0中对于IPv6的支持-解读JDK5.0对IPv6网络编程的支持

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 properties

overview 【程序编程相关: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 easy

we 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;


...   下一页
    摘要: /** * 判断由字符串from和to代表的两个日期的先后关系. * @param from 满足yyyy-mm-dd hh:mm日期格式的字符串 * @param to 满足yyyy-mm-dd hh:mm日期格式的字符串 * @return -1 : from > to * @return 0 : from = to * @return 1 : from to.cha......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE