Package

de.sciss

osc

Permalink

package osc

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. osc
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final case class Bundle(timetag: Timetag, packets: Packet*) extends Packet with LinearSeq[Packet] with LinearSeqLike[Packet, Bundle] with Product with Serializable

    Permalink
  2. trait Channel extends ConfigLike with java.nio.channels.Channel

    Permalink
  3. type Client = Bidi with Input with Output

    Permalink
  4. sealed trait Dump extends AnyRef

    Permalink
  5. class Message extends Packet with LinearSeq[Any] with LinearSeqLike[Any, Message]

    Permalink
  6. sealed trait Packet extends AnyRef

    Permalink
  7. trait PacketCodec extends AnyRef

    Permalink
  8. trait Server extends Bidi

    Permalink
  9. final case class Timetag(raw: Long) extends Product with Serializable

    Permalink
  10. sealed trait Transport extends AnyRef

    Permalink

Value Members

  1. object BuildInfo extends Product with Serializable

    Permalink

    This object was generated by sbt-buildinfo.

  2. object Bundle extends Serializable

    Permalink
  3. object Channel

    Permalink
  4. object Client

    Permalink
  5. object Dump

    Permalink
  6. object File extends Transport with Product with Serializable

    Permalink

    XXX TODO -- this transport has not yet been implemented.

  7. object Implicits

    Permalink
  8. object Message

    Permalink
  9. object Packet

    Permalink
  10. object PacketCodec

    Permalink

    A packet codec defines how the translation between Java objects and OSC atoms is accomplished.

    A packet codec defines how the translation between Java objects and OSC atoms is accomplished. For example, by default, when an OSC message is assembled for transmission, the encoder will translate ajava.lang.Integer argument into a four byte integer with typetag 'i'. Or when a received message is being decoded, finding an atom typetagged 'f', the decoder will create a java.lang.Float out of it.

    This example sounds trivial, but the codec is also able to handle type conversions. For instance, in the strict OSC 1.0 specification, only 32bit numeric atoms are defined ('i' and 'f'). A codec with mode MODE_STRICT_V1 will reject a java.lang.Double in the encoding process and not be able to decode a typetag 'd'. A codec with mode MODE_MODEST automatically breaks down everything the 32bit, so a java.lang.Double gets encoded as 32bit 'f' and a received atom tagged 'd' becomes a java.lang.Float. Other configurations exist.

    Another important function of the codec is to specify the charset encoding of strings, something that was overseen in the OSC 1.0 spec. By default, UTF-8 is used so all special characters can be safely encoded.

    Last but not least, using the putDecoder and putEncoder methods, the codec can be extended to support additional Java classes or OSC typetags, without the need to subclass PacketCodec.

  11. object Receiver

    Permalink
  12. object Server

    Permalink
  13. object TCP extends Net with Product with Serializable

    Permalink

    TCP as a transport for OSC.

    TCP as a transport for OSC. At the moment, packets are encoded in the OSC 1.0 format, regardless of of the configuration's packet codec. That means the 32-bit Int size followed by the actual plain packet is encoded. The OSC 1.1 draft suggests SLIP (cf. http://www.faqs.org/rfcs/rfc1055.html). This may be configurable in the future.

  14. object Timetag extends Serializable

    Permalink
  15. object Transmitter

    Permalink
  16. object Transport

    Permalink
  17. object UDP extends Net with Product with Serializable

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped