This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
osc-ruby /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Thu Oct 22 06:52:50 -0700 2009 | |
| |
README.rdoc | Sun Nov 01 11:41:01 -0800 2009 | |
| |
Rakefile | Thu Oct 22 06:52:50 -0700 2009 | |
| |
TODO | Fri Aug 28 06:23:35 -0700 2009 | |
| |
VERSION.yml | Tue Sep 01 19:23:34 -0700 2009 | |
| |
examples/ | Tue Sep 01 19:19:11 -0700 2009 | |
| |
lib/ | Fri Oct 23 06:42:46 -0700 2009 | |
| |
osc-ruby.gemspec | Thu Oct 22 06:52:50 -0700 2009 | |
| |
script/ | Tue Aug 18 19:30:54 -0700 2009 | |
| |
spec/ | Thu Oct 22 06:52:50 -0700 2009 |
README.rdoc
An OSC client for Ruby
Description
This OSC gem originally created by Tadayoshi Funaba has been updated for ruby 1.9 compatibility. I’ve made a point to make this code as expressive as possible and provide a test suite for confident hacking. It also should be flexible enough to support most crazy ideas.
Compatible with ruby 1.8, 1.9, and jruby
Install
sudo gem install osc-ruby
for the EMServer, you will need EventMachine
sudo gem install eventmachine
Event Machine example
# compatible with ruby 1.8, 1.9, and jruby
require 'rubygems'
require 'osc-ruby'
require 'osc-ruby/em_server'
@server = OSC::EMServer.new( 3333 )
@client = OSC::Client.new( 'localhost', 3333 )
@server.add_method '/greeting' do | message |
puts message.to_a
end
Thread.new do
@server.run
end
@client.send( OSC::Message.new( "/greeting" , "hullo!" ))
sleep( 3 )
Classic example
# compatible with ruby 1.8
require 'rubygems'
require 'osc-ruby'
@server = OSC::Server.new( 3333 )
@client = OSC::Client.new( 'localhost', 3333 )
@server.add_method '/greeting' do | message |
puts message.inspect
end
Thread.new do
@server.run
end
@client.send( OSC::Message.new( "/greeting", "hullo!" ))
sleep( 3 )
Credits
Originally created by…
Tadayoshi Funaba
thx also to Toby Tripp and Obtiva







