All Implemented Interfaces:
Serializable, Cloneable, Iterable<SSDPNotifySocket>, Collection<SSDPNotifySocket>, List<SSDPNotifySocket>, RandomAccess, SequencedCollection<SSDPNotifySocket>

public class SSDPNotifySocketListextends Vector<SSDPNotifySocket>
A list of SSDP notification sockets for receiving SSDP notify messages.
This class manages multiple SSDPNotifySocket instances to handle SSDP notifications across different network interfaces and addresses.
See Also:
  • Field Details

    • binds

      private InetAddress[] binds
      /////////////////////////////////////////////
  • Constructor Details

    • SSDPNotifySocketList

      public SSDPNotifySocketList()
      Creates an empty socket list with no explicit bind addresses.
    • SSDPNotifySocketList

      public SSDPNotifySocketList(InetAddress[] binds)
      Create a socket list bound to the given addresses.
      Parameters:
      binds - The host to bind the service null means to bind to default.
  • Method Details

    • getSSDPNotifySocket

      public SSDPNotifySocket getSSDPNotifySocket(int n)
      Returns the notify socket at the given index.
      Parameters:
      n - the zero-based index of the socket in this list
      Returns:
      the notify socket bound to that address
    • setControlPoint

      public void setControlPoint(ControlPoint ctrlPoint)
      Hands the control point to every socket in this list.
      Parameters:
      ctrlPoint - the control point handed to every socket in this list
    • open

      public boolean open()
      Opens a notify socket per bind address.
      Returns:
      true once the sockets are opened, even if some bind addresses failed
    • close

      public void close()
      Closes every socket in this list and empties it.
    • start

      public void start()
      Starts the notification thread on every socket in this list.
    • stop

      public void stop()
      Stops the notification thread on every socket in this list.