|
cybergarage-upnp
|
Public Member Functions | |
| Advertiser (Device dev) | |
| void | setDevice (Device dev) |
| Device | getDevice () |
| void | run () |
Public Member Functions inherited from org.cybergarage.util.ThreadCore | |
| ThreadCore () | |
| void | setThreadObject (java.lang.Thread obj) |
| java.lang.Thread | getThreadObject () |
| void | start () |
| boolean | isRunnable () |
| void | stop () |
| void | restart () |
Private Attributes | |
| Device | device |
Background thread that periodically advertises a UPnP device's presence.
The advertiser sends SSDP NOTIFY messages at regular intervals to announce the device's availability on the network. The announcement interval is randomized between 25%-50% of the device's lease time to distribute network traffic when multiple devices are present.
This class is used internally by Device to implement the Network Media Player Requirement (NMPR) for periodic advertisements.
|
inline |
Constructs an advertiser for the specified device.
| dev | the device to advertise |
|
inline |
Returns the device being advertised.
|
inline |
Reimplemented from org.cybergarage.util.ThreadCore.
|
inline |
Sets the device to be advertised.
| dev | the device to advertise |
|
private |