Class SSDPSearchSocket

    • Constructor Detail

      • SSDPSearchSocket

        public SSDPSearchSocket​(String bindAddr,
                                int port,
                                String multicast)
        Parameters:
        bindAddr - The address to bind the service
        port - The port used for accepting message
        multicast - The multicast address to use as destination
        Since:
        1.8
      • SSDPSearchSocket

        public SSDPSearchSocket​(InetAddress bindAddr)
        Parameters:
        bindAddr - the binding address for sending multicast packet
        Since:
        1.8
    • Method Detail

      • open

        public boolean open​(String bind,
                            String multicast)
      • addSearchListener

        public void addSearchListener​(SearchListener listener)
      • removeSearchListener

        public void removeSearchListener​(SearchListener listener)
      • performSearchListener

        public void performSearchListener​(SSDPPacket ssdpPacket)
      • run

        public void run()
        Specified by:
        run in interface Runnable
      • start

        public void start()
      • stop

        public void stop()