Class: OSC::SimpleClient

Inherits:
Object
  • Object
show all
Defined in:
lib/osc.rb

Instance Method Summary collapse

Constructor Details

#initialize(host, port) ⇒ SimpleClient

Returns a new instance of SimpleClient.



366
367
368
369
# File 'lib/osc.rb', line 366

def initialize(host, port)
  @so = UDPSocket.new
  @so.connect(host, port)
end

Instance Method Details

#send(mesg) ⇒ Object



371
372
373
# File 'lib/osc.rb', line 371

def send(mesg)
  @so.send(mesg.encode, 0)
end