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

The limits of the binary protocol client: the numbers of "Security rules for Phase B" in the design. More...

Collaboration diagram for de.yaacc.snapcast.protocol.SnapcastProtocolLimits:
Collaboration graph

Static Public Attributes

static final int HEADER_SIZE = 26
 Bytes of the base header.
 
static final int MAX_BULK_BODY = 8 * 1024 * 1024
 The largest typed message of a WireChunk or a CodecHeader.
 
static final int MAX_SMALL_BODY = 64 * 1024
 The largest typed message of every other type, known or not.
 
static final int MAX_CODEC_NAME_BYTES = StreamLimits.MAX_CODEC_NAME_BYTES
 Bytes of a codec name; a longer one can not be on the allow-list.
 
static final int MAX_CODEC_HEADER_PAYLOAD = StreamLimits.MAX_CODEC_HEADER_PAYLOAD
 Bytes of the header payload of an allowed codec (a WAVE header is 44, a FLAC header about 42 bytes).
 
static final int MAX_TEXT_LENGTH = 1024
 Characters of any text of the server that is kept (error text); longer text is cut.
 
static final int MIN_SAMPLE_RATE = StreamLimits.MIN_SAMPLE_RATE
 
static final int MAX_SAMPLE_RATE = StreamLimits.MAX_SAMPLE_RATE
 
static final int MIN_CHANNELS = StreamLimits.MIN_CHANNELS
 
static final int MAX_CHANNELS = StreamLimits.MAX_CHANNELS
 
static final int MIN_BUFFER_MS = StreamLimits.MIN_BUFFER_MS
 
static final int MAX_BUFFER_MS = StreamLimits.MAX_BUFFER_MS
 
static final int DEFAULT_BUFFER_MS = StreamLimits.DEFAULT_BUFFER_MS
 
static final int MIN_LATENCY_MS = StreamLimits.MIN_LATENCY_MS
 
static final int MAX_LATENCY_MS = StreamLimits.MAX_LATENCY_MS
 
static final int MIN_VOLUME = StreamLimits.MIN_VOLUME
 
static final int MAX_VOLUME = StreamLimits.MAX_VOLUME
 
static final int MAX_CODEC_HEADER_BODY = MAX_CODEC_HEADER_PAYLOAD + 64
 The largest typed message of a CodecHeader: a name of at most 32 bytes, the header, and two lengths.
 

Detailed Description

The limits of the binary protocol client: the numbers of "Security rules for Phase B" in the design.

Every parser and the connection read them from here.


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