|
YAACC - UPNP Client and Server
|
The Android side of the receiver discovery: browses {@value FCastServiceType.TYPE} with NsdManager and gives every resolved service to the FCastDirectory.
More...

Public Member Functions | |
| FCastNsd (Context context, FCastDirectory directory, FCastDiscoveryLog log) | |
| synchronized boolean | isStarted () |
| synchronized FCastDiscoveryReport.LockState | lockState () |
| The state of the multicast lock, for the report. | |
| synchronized void | start () |
| Starts browsing. | |
| synchronized void | stop () |
| Stops browsing, drops the queue and releases the multicast lock. | |
The Android side of the receiver discovery: browses {@value FCastServiceType.TYPE} with NsdManager and gives every resolved service to the FCastDirectory.
Thin on purpose: what to accept (address ranges, ports, caps, names) is decided by the directory, the order of the resolutions by ResolveQueue and which failures are retried by ResolveRetry (both of the Snapcast discovery, used as they are, decision D15). This class can not be tested on the JVM; everything it does is written to the FCastDiscoveryLog for the report the user can read.
Lifetime. Nothing runs until start(), which the receivers page calls (through the gate) when it becomes visible; stop() ends the browse, the queue and the multicast lock, which is held only between the two. No permission beyond what the app has for UPnP (CHANGE_WIFI_MULTICAST_STATE) is needed.
Trust. An announcement is not authenticated: the name is display text, the address comes from the resolution as a number (no name lookup here), the TXT attributes are hints.
| synchronized void de.yaacc.fcast.discovery.FCastNsd.start | ( | ) |
Starts browsing.
Does nothing when it runs already.

| synchronized void de.yaacc.fcast.discovery.FCastNsd.stop | ( | ) |
Stops browsing, drops the queue and releases the multicast lock.
Does nothing when it is stopped.
