Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NIO: Multicast

 
Anders Olsen
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to use UDP Multicast and java.nio? I hava found a java.nio.channels.DatagramChannel which corresponds to the java.net.DatagramSocket class, but I can't find any channel that matches the java.net.MulticastSocket?
Can I use the DatagramChannel to receive broadcasts? How do I join and leave groups then?
Regards
Anders
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic