Class MulticastTest


  • public class MulticastTest
    extends java.lang.Object
    Tests MulticastSocket.joinGroup(InetAddress) and MulticastChannel.join(InetAddress, NetworkInterface). Both tests fail when running as a native image under GraalVM 19.0.1.
    Since:
    4.1.2
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.net.InetAddress bind_addr  
      protected static java.net.InetAddress group  
      protected static int PORT  
    • Constructor Summary

      Constructors 
      Constructor Description
      MulticastTest()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      protected static void testDatagramChannel()  
      protected static void testMulticastSocket()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • group

        protected static final java.net.InetAddress group
      • bind_addr

        protected static final java.net.InetAddress bind_addr
    • Constructor Detail

      • MulticastTest

        public MulticastTest()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testMulticastSocket

        protected static void testMulticastSocket()
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • testDatagramChannel

        protected static void testDatagramChannel()
                                           throws java.io.IOException
        Throws:
        java.io.IOException