YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.yxc.YxcGroupDirectory Class Reference

Who belongs to whose group, found from the states of the watched devices. More...

Collaboration diagram for de.yaacc.yxc.YxcGroupDirectory:
Collaboration graph

Public Member Functions

 YxcGroupDirectory (Collection< YxcDeviceSnapshot > devices)
 
String serverOf (String udn)
 
List< String > clientsOf (String udn)
 
List< String > membersOf (String udn)
 
YxcDeviceSnapshot get (String udn)
 
Collection< YxcDeviceSnapshot > all ()
 

Detailed Description

Who belongs to whose group, found from the states of the watched devices.

The answer of a client does not name its server and its group name is its own ("(Linked) ..."), so the members of a group are matched by the group id: the server of a client is the watched device that is a server with the same id, the clients of a server are the watched devices at the addresses it lists (and the ones that report its id as clients). Pure; built from one snapshot of the monitor.

Member Function Documentation

◆ clientsOf()

List< String > de.yaacc.yxc.YxcGroupDirectory.clientsOf ( String udn)
Returns
the UDNs of the watched devices that are clients of this server, in the order the server lists them; empty for any other role

Referenced by de.yaacc.yxc.YxcGroupDirectory.membersOf().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get()

YxcDeviceSnapshot de.yaacc.yxc.YxcGroupDirectory.get ( String udn)
Returns
the snapshot of a device, null if it is not watched

Referenced by de.yaacc.yxc.YxcLinkCandidates.forServer().

Here is the caller graph for this function:

◆ membersOf()

List< String > de.yaacc.yxc.YxcGroupDirectory.membersOf ( String udn)
Returns
the UDNs of the whole group (server first), empty if the device is in none or its server is not watched

Referenced by de.yaacc.yxc.YxcLinkCandidates.forServer().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ serverOf()

String de.yaacc.yxc.YxcGroupDirectory.serverOf ( String udn)
Returns
the UDN of the server of the group this client is in. Only when exactly one watched device is a server with this group id and lists this client's address: group ids can be read by anybody on the network, so a second claimant or a server that does not list the client is not believed. null otherwise.

Referenced by de.yaacc.yxc.YxcGroupDirectory.membersOf().

Here is the call graph for this function:
Here is the caller graph for this function:

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