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

The server's artwork messages (issue #325, K15; spec, "Artwork messages"): the artwork stream/start and stream/end and the binary messages of an image (announce, parts, cancel) on the channel types 8 to 11. More...

Collaboration diagram for de.yaacc.sendspin.session.ArtworkWire:
Collaboration graph

Static Public Member Functions

static int typeOf (int channel)
 
static String streamStart (long serverTransmittedMicros, List< ControllerMessages.ArtworkChannel > channels)
 stream/start with the artwork channels exactly as the client declared them.
 
static String streamEnd ()
 stream/end for the artwork role only.
 
static byte[] announce (long totalSize, long timestampMicros)
 The announce of an image: flag bit 1, when it is to be shown (server clock) and its size; a size of 0 clears the channel.
 
static byte[] part (byte[] data, int offset, int length)
 A part of the image: no flag set, then the next bytes of it.
 
static byte[] cancel ()
 The cancel of the pending image of a channel: flag bit 0 only.
 

Static Public Attributes

static final int MAX_MESSAGE_BYTES = 65519
 The largest artwork message including its type byte, so that it fits one transport message without fragmentation.
 
static final int MAX_PART_DATA = MAX_MESSAGE_BYTES - 2
 The most image bytes of one part: the message less the type and the flags bytes.
 
static final int FIRST_TYPE = 8
 The binary message type of channel 0.
 
static final int MAX_CHANNELS = 4
 

Detailed Description

The server's artwork messages (issue #325, K15; spec, "Artwork messages"): the artwork stream/start and stream/end and the binary messages of an image (announce, parts, cancel) on the channel types 8 to 11.

The bodies here are the bytes after the type byte, as SecureChannel.sendMessage takes them. Pure.


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