Class HTTPMUSocket

    • Constructor Detail

      • HTTPMUSocket

        public HTTPMUSocket()
      • HTTPMUSocket

        public HTTPMUSocket​(String addr,
                            int port,
                            String bindAddr)
    • Method Detail

      • finalize

        protected void finalize()
        Overrides:
        finalize in class Object
      • getLocalAddress

        public String getLocalAddress()
      • getMulticastPort

        public int getMulticastPort()
        Returns:
        the destination port for multicast packet
        Since:
        1.8
      • getLocalPort

        public int getLocalPort()
        Returns:
        the source port for multicast packet
        Since:
        1.8
      • getMulticastInetAddress

        public InetAddress getMulticastInetAddress()
      • getMulticastAddress

        public String getMulticastAddress()
      • open

        public boolean open​(String addr,
                            int port,
                            InetAddress bindAddr)
        Parameters:
        addr - String rappresenting the multicast hostname to join into.
        port - int rappresenting the port to be use poth as source and destination
        bindAddr - InetAddress which identify the hostname of the interface to use for sending and recieving multicast packet
      • open

        public boolean open​(String addr,
                            int port,
                            String bindAddr)
      • close

        public boolean close()
      • send

        public boolean send​(String msg,
                            String bindAddr,
                            int bindPort)
      • send

        public boolean send​(String msg)