Java 开发人员的 IPv6 准备情况
ARIN 建议在 2012 年 1 月(3 天!!!)之前准备好 IPv6
。我想知道这对 Java 开发人员或 Java EE 服务器管理员(GlassFish、Tomcat 等)意味着什么(如果有)?
我相信 Java 1.4+ 提供了 IPv6,但不确定这一切是否是在“Java hood”下自动发生的,或者是否存在我们 Java 人员必须注意的真实的手动更改。提前致谢!
ARIN recommends IPv6
readiness by January 2012 (3 days!!!). I was wondering what implications (if any) does this mean for Java developers or Java EE server admins (GlassFish, Tomcat, etc.)?
I believe Java 1.4+ provides IPv6, but not sure if its something that all happens automagically underneath the "Java hood" or if there are real, manual changes that us Java folk will have to look out for. Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能需要查看网络 IPv6 用户指南JDK/JRE 5.0 是一个很好的参考。
只要您坚持使用纯 Java 函数,从 Java 1.4 开始,大多数(全部?)Java 应用程序都可以为 IPv6 做好准备,而无需更改任何代码,甚至不需要重新编译。
然而,正如下面的 praseodym 指出的,有一个例外:如果您要存储、使用或操作原始 IPv4 地址(32 位),您将需要进行更改以允许 128 位 IPv6 地址。
You might want to take a look at the Networking IPv6 User Guide for JDK/JRE 5.0 for a good reference.
As long as you stick to pure Java functions, most (all?) Java applications are prepared for IPv6 without changing a single line of code, or even recompiling, since Java 1.4.
However, as praseodym below points out, there is one exception: if you are storing, using or manipulating raw IPv4 addresses (which are 32-bit) you will need to make changes to allow for 128-bit IPv6 addresses.