YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.multiroom.discovery.BrowseHandle Class Reference

One call of NsdManager.discoverServices and what a stop has to do. More...

Collaboration diagram for de.yaacc.multiroom.discovery.BrowseHandle:
Collaboration graph

Public Member Functions

synchronized boolean onStarted ()
 The platform confirmed the start.
 
synchronized void onStartFailed ()
 The platform could not start the browse: there is nothing to stop.
 
synchronized boolean requestStop ()
 

Detailed Description

One call of NsdManager.discoverServices and what a stop has to do.

A stop that is requested before the platform confirmed the start (the receivers page shown and hidden within a moment) is answered by some releases with "stop failed" and leaves the browse running; so it is held back until onDiscoveryStarted arrives. Pure and thread safe; every call of discoverServices has its own handle, so an old stop never touches a newer browse.

Member Function Documentation

◆ onStarted()

synchronized boolean de.yaacc.multiroom.discovery.BrowseHandle.onStarted ( )

The platform confirmed the start.

Returns
true if a stop was requested earlier and has to be made now

◆ requestStop()

synchronized boolean de.yaacc.multiroom.discovery.BrowseHandle.requestStop ( )
Returns
true if the platform's stop has to be made now; false if it is held back until the start or not needed

Referenced by de.yaacc.fcast.discovery.FCastNsd.stop(), and de.yaacc.sendspin.discovery.SendspinNsd.stop().

Here is the caller graph for this function:

The documentation for this class was generated from the following file: