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

Joins the two announcements of one YAACC phone (issue #325, K14): its player (_sendspin._tcp) and its server (_sendspin-server._tcp) carry the same yaacc id, so that another phone shows one card for it. More...

Collaboration diagram for de.yaacc.sendspin.discovery.YaaccPeers:
Collaboration graph

Static Public Member Functions

static Endpoint serverOf (SendspinDirectory.Entry player, List< SendspinDirectory.Entry > servers)
 
static Endpoint serverWithId (String serverId, List< SendspinDirectory.Entry > servers)
 
static boolean isMergedServer (SendspinDirectory.Entry server, List< SendspinDirectory.Entry > players)
 

Detailed Description

Joins the two announcements of one YAACC phone (issue #325, K14): its player (_sendspin._tcp) and its server (_sendspin-server._tcp) carry the same yaacc id, so that another phone shows one card for it.

Only the id joins them: an address is no proof (a Music Assistant server and a Kodi player can share one). Pure.

Member Function Documentation

◆ isMergedServer()

static boolean de.yaacc.sendspin.discovery.YaaccPeers.isMergedServer ( SendspinDirectory.Entry server,
List< SendspinDirectory.Entry > players )
static
Returns
true if a player of the same phone is listed: this server is shown inside that player's card, not as a card of its own

◆ serverOf()

static Endpoint de.yaacc.sendspin.discovery.YaaccPeers.serverOf ( SendspinDirectory.Entry player,
List< SendspinDirectory.Entry > servers )
static
Returns
the endpoint of the server that belongs to the same phone as this player, or null

Referenced by de.yaacc.sendspin.SendspinHub.remoteControlOf().

Here is the caller graph for this function:

◆ serverWithId()

static Endpoint de.yaacc.sendspin.discovery.YaaccPeers.serverWithId ( String serverId,
List< SendspinDirectory.Entry > servers )
static
Returns
the endpoint of the server whose id is serverId (the id of the connection that streams to this phone; a YAACC server announces itself under it), or null. The platform may add " (2)" to a taken instance name; nothing else may follow the id.

Referenced by de.yaacc.sendspin.SendspinHub.controlServerOfOwnPlayer().

Here is the caller graph for this function:

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