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

The text a user can read and copy to tell "the server does not announce itself" from "the app does not hear it" (task 11.6): the facts of the phone (the switch, Wi-Fi, the multicast permission and lock), what was browsed and what each type saw, the servers listed, the callbacks of NsdManager with their failure codes, and one line that reads the facts. More...

Collaboration diagram for de.yaacc.snapcast.discovery.SnapcastDiscoveryReport:
Collaboration graph

Classes

class  Facts
 The facts of the phone and the list.
 
enum  LockState
 The state of the multicast lock. More...
 
enum  Origin
 Where a listed server came from. More...
 
enum  Reading
 What the facts say; the first that applies. More...
 
class  ServerLine
 A server of the list, for the report.
 
enum  Tri
 A fact that may be unknown. More...
 

Static Public Member Functions

static Reading reading (Facts facts, SnapcastDiscoveryLog.Snapshot log)
 What the facts and the log say, the first rule that applies.
 
static Tri wifiOf (boolean hasNetwork, boolean wifi, boolean ethernet, boolean vpn)
 The Wi-Fi fact from the transports of the default network.
 
static String of (Facts facts, SnapcastDiscoveryLog.Snapshot log)
 The report.
 

Detailed Description

The text a user can read and copy to tell "the server does not announce itself" from "the app does not hear it" (task 11.6): the facts of the phone (the switch, Wi-Fi, the multicast permission and lock), what was browsed and what each type saw, the servers listed, the callbacks of NsdManager with their failure codes, and one line that reads the facts.

Pure. Everything that came from the network is cleaned and cut by SnapcastDiscoveryLog; the report is for the screen and the clipboard only and is never written to the app log. It shows the addresses and names of the servers found: the user decides where it is pasted.

Member Function Documentation

◆ wifiOf()

static Tri de.yaacc.snapcast.discovery.SnapcastDiscoveryReport.wifiOf ( boolean hasNetwork,
boolean wifi,
boolean ethernet,
boolean vpn )
static

The Wi-Fi fact from the transports of the default network.

Wi-Fi or Ethernet is yes (also under a VPN); a VPN alone hides what carries it and is unknown, never "no Wi-Fi"; no network, or mobile data only, is no.


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