Class mcast


  • public class mcast
    extends java.lang.Object
    Tests IP multicast.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      protected class  mcast.Receiver  
    • Constructor Summary

      Constructors 
      Constructor Description
      mcast​(java.net.InetAddress bind_addr, int local_port, java.net.InetAddress mcast_addr, int mcast_port, int ttl)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void bindToInterfaces​(java.util.List<java.net.NetworkInterface> interfaces, java.net.MulticastSocket s)  
      (package private) static void help()  
      static void main​(java.lang.String[] args)  
      protected void start()  
      • Methods inherited from class java.lang.Object

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

      • sock

        protected java.net.DatagramSocket sock
      • mcast_addr

        protected java.net.InetAddress mcast_addr
      • bind_addr

        protected java.net.InetAddress bind_addr
      • mcast_port

        protected int mcast_port
      • local_port

        protected final int local_port
      • ttl

        protected final int ttl
      • can_bind_to_mcast_addr

        protected static final boolean can_bind_to_mcast_addr
      • ip_version

        protected static final StackType ip_version
      • prot_family

        protected static final java.net.ProtocolFamily prot_family
    • Constructor Detail

      • mcast

        public mcast​(java.net.InetAddress bind_addr,
                     int local_port,
                     java.net.InetAddress mcast_addr,
                     int mcast_port,
                     int ttl)
    • Method Detail

      • start

        protected void start()
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • main

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

        static void help()
      • bindToInterfaces

        protected void bindToInterfaces​(java.util.List<java.net.NetworkInterface> interfaces,
                                        java.net.MulticastSocket s)