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

What a user types for a player and the receiver id of the lists. More...

Collaboration diagram for de.yaacc.sendspin.SendspinAddress:
Collaboration graph

Static Public Member Functions

static boolean isSelfId (String id)
 
static Endpoint parse (String text)
 
static Endpoint parseServer (String text)
 
static String serverIdOf (Endpoint endpoint)
 The receiver id of a server card.
 
static boolean isServerId (String id)
 
static Endpoint serverEndpointOf (String id)
 
static String format (Endpoint endpoint)
 The text of an endpoint as it is stored and shown: host:port, an IPv6 host in brackets.
 
static String idOf (Endpoint endpoint)
 The receiver id of the lists for an endpoint.
 
static boolean isSendspinId (String id)
 
static Endpoint endpointOf (String id)
 

Static Public Attributes

static final String ID_PREFIX = "sendspin:"
 The prefix of every receiver id of the lists.
 
static final String INBOUND_ID_PREFIX = "sendspin-in:"
 The prefix of the receiver id of a player that connected to this phone.
 
static final String SERVER_ID_PREFIX = "sendspin-server:"
 The prefix of the receiver ids of the Sendspin servers (cards of the controller).
 
static final String SELF_ID = "sendspin-self:phone"
 The receiver id of the card of this phone as a Sendspin player (there is one).
 
static final int DEFAULT_SERVER_PORT = 8927
 The port a Sendspin server listens on by default (the player's is 8928).
 

Detailed Description

What a user types for a player and the receiver id of the lists.

Accepted: host, host:port, [ipv6] and [ipv6]:port; the port defaults to 8928, the path is always /sendspin. Nothing else: no scheme, no path, no user information, no spaces. Pure.

Member Function Documentation

◆ endpointOf()

static Endpoint de.yaacc.sendspin.SendspinAddress.endpointOf ( String id)
static
Returns
the endpoint of a receiver id, or null if the id is not one of ours or does not parse

Referenced by de.yaacc.sendspin.SendspinHub.endpointOfId(), de.yaacc.sendspin.SendspinHub.findReceiver(), and de.yaacc.sendspin.SendspinHub.selectionChanged().

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

◆ parse()

static Endpoint de.yaacc.sendspin.SendspinAddress.parse ( String text)
static
Returns
the endpoint of a player, or null if the text is not an address this app accepts

Referenced by de.yaacc.sendspin.SendspinAddress.endpointOf(), de.yaacc.sendspin.SendspinPlayers.list(), de.yaacc.sendspin.SendspinAddress.parse(), and de.yaacc.sendspin.SendspinAddress.parseServer().

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

◆ parseServer()

static Endpoint de.yaacc.sendspin.SendspinAddress.parseServer ( String text)
static
Returns
the endpoint of a server (default port 8927), or null

Referenced by de.yaacc.sendspin.SendspinAddress.serverEndpointOf().

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

◆ serverEndpointOf()

static Endpoint de.yaacc.sendspin.SendspinAddress.serverEndpointOf ( String id)
static
Returns
the endpoint of a server card id, or null if the id is not one of ours or does not parse

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

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: