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

The limits that keep a hostile or broken server from using the phone's memory or time. More...

Collaboration diagram for de.yaacc.snapcast.control.SnapcastLimits:
Collaboration graph

Static Public Attributes

static final int MAX_GROUPS = 64
 Groups taken from a status; further groups are ignored.
 
static final int MAX_CLIENTS_PER_GROUP = 256
 Clients taken per group.
 
static final int MAX_STREAMS = 64
 Streams taken from a status.
 
static final int MAX_QUERY_ENTRIES = 32
 Entries of a stream URI query taken.
 
static final int MAX_STRING_LENGTH = 1024
 Characters of any string taken from the server (names, ids, URIs, error texts); longer ones are cut.
 
static final int MAX_DEPTH = 32
 Nesting depth of a JSON line; real answers stay below 10.
 
static final int MAX_TOKENS = 10_000
 Structural tokens (opening brackets, commas, colons) of a JSON line.
 
static final int MAX_BATCH = 64
 Elements of a JSON-RPC batch.
 
static final int MAX_LINE_BYTES = 1 << 20
 Bytes of a line from the server.
 
static final int MAX_REQUEST_BYTES = 256 * 1024
 Bytes of a request we send.
 
static final int MAX_PENDING_CALLS = 32
 Requests waiting for an answer at the same time.
 
static final int MAX_QUEUED_NOTIFICATIONS = 256
 Notifications waiting for the listeners; further ones are dropped and reported as lost.
 
static final int MAX_QUEUED_NOTIFICATION_BYTES = 4 * 1024 * 1024
 Bytes (the size of their lines) of the notifications waiting for the listeners; the count alone is not a bound.
 
static final int MAX_METHOD_LENGTH = 64
 Characters of a JSON-RPC method name.
 
static final int MAX_LATENCY_MS = 10_000
 The largest latency setting of a client, in milliseconds.
 

Detailed Description

The limits that keep a hostile or broken server from using the phone's memory or time.

They are the numbers of the "Security rules" of the design; every parser and the connection code read them from here.


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