Anyone tried the multicast support yet?

Alan Bateman Alan.Bateman at Sun.COM
Thu Jul 17 04:26:47 PDT 2008


I'm wondering if anyone on this mailing list has tried the multicast and 
other socket-channel changes yet? While somewhat niche, many developers 
have been being asking for this feature for many years.  If you are 
willing to try it out then the javadoc, source code, and binaries are 
available via the project page [1]. To re-cap, the updates allow a 
DatagramChannel's socket join multicast groups so that multicast 
datagrams can be received. We've used the opportunity to update the 
multicast support to the most recent IEFT standards and specifically 
source-specific multicast (IGMPv3 and MLDv2). Implementation changes 
include support for the new IPv6 stack on Windows Vista, something that 
would also be useful to get feedback on.

My motive for asking for feedback at this time is that we would like to 
push the changes for this part of the API to the jdk7 repository soon. 
The reason for this is make it easier to merge and stay in sync with 
other bug fixing other in the channels area. Also, there is other 
on-going work that has dependencies on the changes in the API and 
implementation changes in the nio repository.

If you are interested in trying it then there is some sample code in the 
$JDK_HOME/sample/nio/multicast directory that exercises the API. This 
also demonstrates inclusive and exclusive mode filtering for those 
interesting in trying that out.

Thank you,
Alan.

[1] http://openjdk.java.net/projects/nio



More information about the nio-discuss mailing list