YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.fcast.discovery.FCastAddReceiver.Environment Interface Reference

The world of the input: the receivers found, the network tests, the store, the clock. More...

Collaboration diagram for de.yaacc.fcast.discovery.FCastAddReceiver.Environment:
Collaboration graph

Public Member Functions

List< FCastDirectory.Entry > receivers ()
 The receivers known now (found, added by hand, remembered).
 
boolean answers (FCastEndpoint endpoint)
 Whether something answers a TCP connection at this address (a few seconds at most).
 
default java.util.List< Boolean > answersAll (java.util.List< FCastEndpoint > endpoints)
 Whether something answers at each of the addresses.
 
InetAddress lookup (String host) throws IOException
 The system's name lookup; throws if the name is unknown or the lookup is too slow.
 
default List< FCastSubnet > localSubnets ()
 The networks of the phone's network interface; the addresses of a link that are in one of them are tried first.
 
FCastStoredReceivers.AddResult store (FCastEndpoint endpoint, String name)
 Stores a receiver added by hand.
 
default FCastStoredReceivers.AddResult store (FCastEndpoint endpoint, String name, de.yaacc.fcast.protocol.FCastPin pin)
 Stores a receiver added from a link that carried the receiver's key (fp); the key is kept for the secure protocol (task 7.2).
 
boolean isDiscoveryRunning ()
 True while the search for receivers by mDNS runs (the switch is on and the dialog counts as a page).
 
void pause (long millis)
 Waits; the search of a receiver by name uses it between its rounds.
 

Detailed Description

The world of the input: the receivers found, the network tests, the store, the clock.

Member Function Documentation

◆ answersAll()

default java.util.List< Boolean > de.yaacc.fcast.discovery.FCastAddReceiver.Environment.answersAll ( java.util.List< FCastEndpoint > endpoints)

Whether something answers at each of the addresses.

The default asks one after another; the app asks all at the same time (a link lists every address of the receiver's computer, among them the ones of its virtual networks that the phone can not reach, and each of those costs the whole timeout).

Here is the call graph for this function:

◆ localSubnets()

default List< FCastSubnet > de.yaacc.fcast.discovery.FCastAddReceiver.Environment.localSubnets ( )

The networks of the phone's network interface; the addresses of a link that are in one of them are tried first.

Empty if unknown.

◆ store()

default FCastStoredReceivers.AddResult de.yaacc.fcast.discovery.FCastAddReceiver.Environment.store ( FCastEndpoint endpoint,
String name,
de.yaacc.fcast.protocol.FCastPin pin )

Stores a receiver added from a link that carried the receiver's key (fp); the key is kept for the secure protocol (task 7.2).

The default ignores the key.

Here is the call graph for this function:

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