public class SSDPSearchResponseSocketList extends Vector<SSDPSearchResponseSocket>
SSDPSearchResponseSocket instances to send SSDP search
requests and receive responses across different network interfaces.capacityIncrement, elementCount, elementDatamodCount| Constructor and Description |
|---|
SSDPSearchResponseSocketList()SSDPSearchResponseSocketList. |
SSDPSearchResponseSocketList(InetAddress[] binds) |
| Modifier and Type | Method and Description |
|---|---|
void | close()close. |
SSDPSearchResponseSocket | getSSDPSearchResponseSocket(int n)getSSDPSearchResponseSocket. |
boolean | open()open. |
boolean | open(int port)open. |
boolean | post(SSDPSearchRequest req)Sends an M-SEARCH request from all sockets in the list. |
void | setControlPoint(ControlPoint ctrlPoint)setControlPoint. |
void | start()start. |
void | stop()stop. |
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 SSDPSearchResponseSocketList()
public SSDPSearchResponseSocketList(InetAddress[] binds)
binds - The host to bind.Use null for the default behaviorpublic void close()
public SSDPSearchResponseSocket getSSDPSearchResponseSocket(int n)
public boolean open()
public boolean open(int port)
public boolean post(SSDPSearchRequest req)
req - the search request to broadcastpublic void setControlPoint(ControlPoint ctrlPoint)
public void start()
public void stop()