tinyosc 0.0.3

OpenSoundControl implementation
Documentation
  • Coverage
  • 0%
    0 out of 12 items documented0 out of 0 items with examples
  • Size
  • Source code size: 17.25 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.77 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • wrl/tinyosc
    23 4 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • wrl

_ _ | |||___ _ _ ___ ___ ___ | | | | | | . | -| | || |||| |||| ||

tinyosc is a small, liberally licensed opensoundcontrol implementation for
rust. it is, at the moment, quite bare-bones, but the gist and spirit are
both there.

currently, only serialization and deserialization of messages is
supported. pattern matching is planned.

tinyosc supports the following type-tags:

    'i' => i32,
    'f' => f32,
    's' => &str,
    'T' => true,
    'F' => false,
    'N' => Argument::None

you can construct argument lists manually, with vec![] like so:

    Message {
        path: "/where/ever/its/happenin",
        arguments: vec![Argument::i(42), Argument::f(32.32), Argument::F]
    }

or you could use the handy osc_args![] macro, which automatically wraps
arguments in their corresponding Argument variant:

    Message {
        path: "/where/ever/its/happenin",
        arguments: osc_args![42, 32.32, false]
    }

this is identical in effect to the above example with vec![]. the choice
is yours!

simply pair Message serialization/deserialization with std::net::UdpSocket
and you are well on yr way!

questions, comments, and/or ascii art to wrl@illest.net
peace