YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.snapcast.protocol.HelloMessage Class Reference

What the client tells the server when it joins. More...

Inheritance diagram for de.yaacc.snapcast.protocol.HelloMessage:
Inheritance graph
Collaboration diagram for de.yaacc.snapcast.protocol.HelloMessage:
Collaboration graph

Public Member Functions

String getId ()
 
String getHostName ()
 
String getClientName ()
 
String getOs ()
 
String getArch ()
 
String getVersion ()
 
String getMac ()
 
int getInstance ()
 
int getProtocolVersion ()
 
MessageType type ()
 
boolean equals (Object other)
 
int hashCode ()
 
- Public Member Functions inherited from de.yaacc.snapcast.protocol.SnapcastBinaryMessage

Static Public Member Functions

static HelloMessage create (String id, String hostName, String clientName, String os, String arch, String version)
 The Hello of this client.
 

Static Public Attributes

static final String MAC_PLACEHOLDER = "00:00:00:00:00:00"
 The MAC address that is sent instead of a real one.
 
static final int PROTOCOL_VERSION = 2
 The version of the stream protocol (2 since Snapcast 0.x, see the protocol documentation).
 
static final int MAX_FIELD_LENGTH = 128
 Characters kept of every text field.
 

Detailed Description

What the client tells the server when it joins.

The server and every controller of the server see these values, so the disclosure is deliberate (design, "Disclosure (Hello)"): MAC is a fixed placeholder (Android does not expose the real one and it would identify the hardware), ID is the stable identifier the caller derives from the YAACC device, there is no Auth, and every text is cleaned and cut like display text.

Member Function Documentation

◆ create()

static HelloMessage de.yaacc.snapcast.protocol.HelloMessage.create ( String id,
String hostName,
String clientName,
String os,
String arch,
String version )
static

The Hello of this client.

Parameters
ida stable identifier of this phone for the server (not the hardware id); required
hostNamethe name of the phone as the UPnP device already announces it
clientNamethe name of the program, for example "YAACC"
Exceptions
IllegalArgumentExceptionwhen the id is missing or blank

◆ type()

MessageType de.yaacc.snapcast.protocol.HelloMessage.type ( )

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