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

The names that players announced, by client_id, kept across restarts so that the lists of paired and approved players can show a name next to the id. More...

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

Public Member Functions

 SendspinNames (StringSetStore store)
 
synchronized String nameOf (String clientId)
 
synchronized void remember (String clientId, String announced)
 Remembers the name of a player; an empty name (after cleaning) or an id of the wrong shape is ignored.
 
synchronized void forget (String clientId)
 

Static Public Attributes

static final int MAX_NAMES = 64
 

Detailed Description

The names that players announced, by client_id, kept across restarts so that the lists of paired and approved players can show a name next to the id.

At most MAX_NAMES; the oldest are dropped. An entry is <sequence>:<id> <name> (the stored set has no order, the lowest sequence is the oldest). The names come from the network and are cleaned. Pure.

Member Function Documentation

◆ nameOf()

synchronized String de.yaacc.sendspin.SendspinNames.nameOf ( String clientId)
Returns
the last name the player announced, or null

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

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: