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

The JSON-RPC methods of the control port of the built-in server (issue #330, task 3.2): the subset that the app's own control library and a client need (docs/tech.md, "JSON-RPC control"). More...

Collaboration diagram for de.yaacc.snapcast.server.RpcDispatcher:
Collaboration graph

Classes

class  Outcome
 The answer (null for a request without an id) and the notifications to send to the other connections.
 

Public Member Functions

 RpcDispatcher (SnapcastServer server)
 
 RpcDispatcher (SnapcastServer server, java.util.function.Supplier< String > defaultCodec)
 
Outcome handle (JSONObject request)
 

Detailed Description

The JSON-RPC methods of the control port of the built-in server (issue #330, task 3.2): the subset that the app's own control library and a client need (docs/tech.md, "JSON-RPC control").

One request in, the answer and the notifications of the change out; the notifications go to the other control connections, not to the one that made the change (snapserver does the same, and the client of the app relies on it). Every error carries the code of snapserver and the reason in data.

Constructor & Destructor Documentation

◆ RpcDispatcher()

de.yaacc.snapcast.server.RpcDispatcher.RpcDispatcher ( SnapcastServer server,
java.util.function.Supplier< String > defaultCodec )
Parameters
defaultCodecthe codec of a stream that is added without one (the setting of the phone's server)

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