Sha256: 3d5de740a4bc15d015b875ed309f52b19b15f0949bb3654a67e4ec70decb06ed

Contents?: true

Size: 477 Bytes

Versions: 5

Compression:

Stored size: 477 Bytes

Contents

$:.unshift File.join( File.dirname( __FILE__ ), '..', 'lib')
require 'osc-ruby'

require 'rubygems'
require 'eventmachine'
require 'osc-ruby/em_server'

@server = OSC::EMServer.new( 3333 )
@client = OSC::BroadcastClient.new( 3333 )

@server.add_method '/greeting' do | message |
  puts "#{message.ip_address}:#{message.ip_port} -- #{message.address} -- #{message.to_a}"
end

Thread.new do
  @server.run
end

@client.send( OSC::Message.new( "/greeting" , "hullo!" ))

sleep( 3 )

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
osc-ruby-1.1.5 examples/broadcast_client.rb
osc-ruby-1.1.4 examples/broadcast_client.rb
osc-ruby-1.1.3 examples/broadcast_client.rb
osc-ruby-1.1.2 examples/broadcast_client.rb
osc-ruby-1.1.1 examples/broadcast_client.rb