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

Finds out which of the devices yaacc knows speak the protocol, once per device: the description is fetched, the control interface is looked for (YxcDescriptionParser), and the answer is remembered per UDN, including "this is not such a device". More...

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

Public Member Functions

 YxcDiscovery (YxcDescriptionFetcher fetcher)
 
YxcEndpoint find (String udn, String descriptorUrl)
 

Detailed Description

Finds out which of the devices yaacc knows speak the protocol, once per device: the description is fetched, the control interface is looked for (YxcDescriptionParser), and the answer is remembered per UDN, including "this is not such a device".

A device that did not answer is asked again after RETRY_AFTER_MILLIS. A device whose description URL changed (new address) is looked at again.

The address of the endpoint is the one of the description URL that yaacc's own registry gave; the host a document names is used only to take over its port when it names the same host, so a device can not send yaacc elsewhere.

Member Function Documentation

◆ find()

YxcEndpoint de.yaacc.yxc.YxcDiscovery.find ( String udn,
String descriptorUrl )
Parameters
udnthe UDN of the UPnP device, as the registry has it
descriptorUrlthe URL the registry fetched the description from
Returns
the endpoint, or null when the device does not speak the protocol or did not answer

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