public class Advertiser extends ThreadCore
This class extends ThreadCore to provide periodic device advertisement through SSDP NOTIFY messages. It manages the announcement cycle for device presence and implements NMPR (Network Media Profile Requirements) compliance for notification timing.
Key features:
This class is used by UPnP devices to automatically announce their presence on the network at regular intervals, ensuring discovery by control points and maintaining network visibility.
| Constructor and Description |
|---|
Advertiser(Device dev)
Constructor for advertiser.
|
| Modifier and Type | Method and Description |
|---|---|
Device |
getDevice()
Gets the device being advertised.
|
void |
run()
The main execution method of the thread.
|
void |
setDevice(Device dev)
Sets the device to advertise.
|
getThreadObject, isRunnable, restart, setThreadObject, start, stoppublic Advertiser(Device dev)
dev - device to advertisepublic Device getDevice()
public void run()
ThreadCorerun in interface Runnablerun in class ThreadCorepublic void setDevice(Device dev)
dev - device to advertise