Class MulticastTest2


  • public class MulticastTest2
    extends java.lang.Object
    Tests 2 MulticastSockets joining the same multicast address and port (this should be possible). This test fails when running as a native image under GraalVM 19.2.0.
    Since:
    4.1.5
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.net.InetAddress BIND_ADDR  
      protected static java.net.InetAddress MCAST_ADDR  
      protected static int MCAST_PORT  
    • Constructor Summary

      Constructors 
      Constructor Description
      MulticastTest2()  
    • Method Summary

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

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

      • MCAST_ADDR

        protected static final java.net.InetAddress MCAST_ADDR
      • BIND_ADDR

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

      • MulticastTest2

        public MulticastTest2()
    • Method Detail

      • main

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

        protected static java.net.MulticastSocket create()
                                                  throws java.io.IOException
        Throws:
        java.io.IOException