Class SSDPSearchSocket

java.lang.Object
org.cybergarage.upnp.ssdp.HTTPMUSocket
org.cybergarage.upnp.ssdp.SSDPSearchSocket
All Implemented Interfaces:
Runnable

public class SSDPSearchSocket extends HTTPMUSocket implements Runnable
  • Constructor Details

    • SSDPSearchSocket

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

      public SSDPSearchSocket(InetAddress bindAddr) throws IOException
      Parameters:
      bindAddr - the binding address for sending multicast packet
      Throws:
      IOException
      Since:
      1.8
  • Method Details

    • open

      public boolean open(Inet4Address bindAddr)
    • open

      public boolean open(Inet6Address bindAddr)
    • open

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

      public boolean open(String bindAddr)
      Parameters:
      bindAddr - the hostname of the interface to use for sending multicast packet
      Returns:
      true if and only if it open the socket
      See Also:
    • 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()