public class SSDPSearchSocketList extends Vector<SSDPSearchSocket>
This class extends Vector to manage multiple SSDPSearchSocket objects that handle outgoing SSDP search requests. It provides type-safe management of the socket pool used for device discovery operations.
Key features:
This class is used by UPnP control points to manage multiple sockets for sending SSDP M-SEARCH requests across different network interfaces, enabling comprehensive device discovery in multi-homed environments.
capacityIncrement, elementCount, elementDatamodCount| Constructor and Description |
|---|
SSDPSearchSocketList()Default constructor. |
SSDPSearchSocketList(InetAddress[] binds)Constructor with bind addresses. |
SSDPSearchSocketList(InetAddress[] binds,
int port,
String multicastIPv4,
String multicastIPv6)Create SSDP search socket list. |
| Modifier and Type | Method and Description |
|---|---|
void | addSearchListener(SearchListener listener)Adds a search listener to all sockets. |
void | close()Closes all search sockets. |
SSDPSearchSocket | getSSDPSearchSocket(int n)Returns the socket at the given index. |
boolean | open()Opens all search sockets. |
void | start()Starts all search sockets. |
void | stop()Stops all search sockets. |
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSizefinalize, getClass, notify, notifyAll, wait, wait, waitparallelStream, streampublic SSDPSearchSocketList()
public SSDPSearchSocketList(InetAddress[] binds)
public SSDPSearchSocketList(InetAddress[] binds, int port, String multicastIPv4, String multicastIPv6)
binds - Bind addressesport - Port numbermulticastIPv4 - IPv4 multicast addressmulticastIPv6 - IPv6 multicast addresspublic void addSearchListener(SearchListener listener)
public void close()
public SSDPSearchSocket getSSDPSearchSocket(int n)
public boolean open()
public void start()
public void stop()