On 08/11/2011 06:40 PM, Andrew Stitcher wrote:
On Thu, 2011-08-11 at 12:27 -0400, Andrew Stitcher wrote:
On Thu, 2011-08-11 at 11:08 -0400, Rajith Attapattu wrote:
...
1. Actually listening/connecting to IPv6 sockets (including the correct
reconnect and multiple listening socket logic)
My understanding is that since Java 1.4, there have been support for IPv6.
AFAIK this is transparent and code wise we don't really have to do
anything special.
But of course we have to test this out and see.
I doubt this is the case unless thought has gone into it initially, as
you have to do things differently to get v6 sockets as opposed to v4.
I'll go and look at code to see if I can substantiate.
I retract that. From what I can see in the code it looks like IPv6
addresses will get correctly resolved and connected to. However I'm
couldn't see anywhere which would do the correct retry logic if say the
first resolved address wasn't available.
http://download.oracle.com/javase/1.5.0/docs/guide/net/ipv6_guide/index.html
Which claims: "With Java you can run any Java applications, client or
server, on an IPv6-enabled platform using J2SE 1.4 or later, and that
application will automagically become IPv6-enabled."
It also states:
"that on a dual-stack machine, since one socket, the IPv6 socket, will
be able to access both IPv4 and IPv6 protocol stacks, you only need to
create one socket"
does this mean on Linux we don't need to create multiple sockets to
listen on?
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]